Skip to content

Handle Error in sendError method

DojoCoder requested to merge pajasevi/samourai-dojo:send-error-handling into develop

The sendError method contains a problem that when data is an instance of Error it will not serialize correctly to string because JSON.stringify(Error) just returns empty object. This MR logs Error and replaces it with generic error as discussed with @LaurentMT.

Merge request reports