Am 24.02.2017 um 20:25 schrieb Steven Schveighoffer:
Is there a way to override the rest result when registering a REST
interface? I would like to only show the stack trace when the user has
certain rights, but any time any exception is thrown from a REST
interface, the REST subsystem puts out a message with a short
"statusMessage" and a trace in "statusDebugMessage".-Steve
Right now this can only be changed by omitting the -debug
option
during the build. Then only the message itself will be printed. But I
guess there should really be the possibility to register a callback,
similar to HTTPServerSettings.errorPageHandler
, maybe even using a UDA
to be able to control this per endpoint. Any thoughts/preferences?