Skip to content

Commit

Permalink
Accomodate change in Conga 3.2 which moved Error from the Conga names…
Browse files Browse the repository at this point in the history
…pace into the instance of the library
  • Loading branch information
bpbecker committed Mar 15, 2019
1 parent 5e09299 commit ba53b03
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Core/MiServer.dyalog
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
:endsection

rRunServer arg;Stop;StartTime;⎕TRAP;idletime;wres;rc;obj;evt;data;conx;ts
rRunServer arg;Stop;StartTime;⎕TRAP;idletime;wres;rc;obj;evt;data;conx;ts;congaError
Simple HTTP (Web) Server framework
Assumes Conga available in #.DRC and uses #.HTTPRequest
arg: dummy
Expand All @@ -139,6 +139,10 @@

onServerStart meant to be overridden

:If 0#.DRC.⎕NC'Error' congaError#.DRC.Error Conga 3.2 moved Error into the library instance
:Else congaError#.Conga.Error Prior to 3.2 Error was in the namespace
:EndIf

idletime#.Dates.DateToIDN ⎕TS

:While ~Stop
Expand All @@ -156,7 +160,7 @@
ConnectionDelete obj
:EndIf
:If 04wres
(1+(4wres)1008 1105 1119)Log'RunServer: DRC.Wait reported error ',(#.Conga.Error 4wres),' on ',2wres
(1+(4wres)1008 1105 1119)Log'RunServer: DRC.Wait reported error ',(congaError 4wres),' on ',2wres
:EndIf

:Case 'Connect'
Expand Down

0 comments on commit ba53b03

Please sign in to comment.