Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

Commit 093f07f

Browse files
committed
Fix for REST broker in 16.1
1 parent cb17098 commit 093f07f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Workflow/AbstractREST.cls.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,15 @@ Issue an '500' error and give some indication as to what occurred.<br>
173173
<b>pStatus</b> - %status, not %Exception.AbstractException.]]></Description>
174174
<ClassMethod>1</ClassMethod>
175175
<FormalSpec>pStatus:%Exception.AbstractException</FormalSpec>
176+
<ReturnType>%Status</ReturnType>
176177
<Implementation><![CDATA[
177178
// we are expecting status
178179
#; Set the response Http status
179-
Set %response.Status="500 Internal Server Error"
180+
set %response.Status="500 Internal Server Error"
180181
181182
#; Return a helpful error string
182-
Write "{""Error"":"_$$$ZENJSSTR($System.Status.GetErrorText(pStatus,%session.Language))_"}"
183+
write "{""Error"":"_$$$ZENJSSTR($System.Status.GetErrorText(pStatus,%session.Language))_"}"
184+
return $$$OK
183185
]]></Implementation>
184186
</Method>
185187

0 commit comments

Comments
 (0)