Megatest

Diff
Login

Differences From Artifact [d4c6e4ffa0]:

To Artifact [36f919b0c4]:


104
105
106
107
108
109
110

111






112
113
114
115
116
117
118
;;    - returns #( flag result )
;;
(define (api:execute-requests dbstruct dat)
  (handle-exceptions
   exn
   (let ((call-chain (get-call-chain)))
     (print-call-chain (current-error-port))

     (debug:print 0 " message: " ((condition-property-accessor 'exn 'message) exn))       






     (vector #f (vector exn call-chain dat))) ;; return some stuff for debug if an exception happens
   (if (not (vector? dat))                    ;; it is an error to not receive a vector
       (vector #f #f "remote must be called with a vector")       
       (vector                                   ;; return a vector + the returned data structure
	#t 
	(let ((cmd    (vector-ref dat 0))
	      (params (vector-ref dat 1)))







>
|
>
>
>
>
>
>







104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
;;    - returns #( flag result )
;;
(define (api:execute-requests dbstruct dat)
  (handle-exceptions
   exn
   (let ((call-chain (get-call-chain)))
     (print-call-chain (current-error-port))
     (debug:print 0 " api:execute-requests/message: "
                  ((condition-property-accessor 'exn 'message "exn message null") exn)
                  " arguments: "
                  ((condition-property-accessor 'exn 'arguments "exn arguments null") exn)
                  " location: "
                  ((condition-property-accessor 'exn 'location "exn location null") exn)

                  )       
     (vector #f (vector exn call-chain dat))) ;; return some stuff for debug if an exception happens
   (if (not (vector? dat))                    ;; it is an error to not receive a vector
       (vector #f #f "remote must be called with a vector")       
       (vector                                   ;; return a vector + the returned data structure
	#t 
	(let ((cmd    (vector-ref dat 0))
	      (params (vector-ref dat 1)))