leocavalcante/siler

How to throw an Exception in the resolver?

Closed this issue · 1 comments

When I throw an exception in the resolver the code execution is not stopped at that point. Obviously Siler uses its own try catch handling around the resolver. What can I do that Siler outputs the Error in the debug output of my GraphQL response? Currently it seems to ignore the Exception.

throw new Exception('ERROR: This is a test');

Sorry, this is not a Siler issue. Seems to be a problem with my code.