After https://github.com/postlight/lux/pull/713 was merged, this made it impossible to return any meaningful error messages when desired. This PR adds a rudimentary way to specifically allow a message detail by including [public] in the message.
When the [public] tag is found in the message, the error.detail value is set and the [public] string is removed.
After https://github.com/postlight/lux/pull/713 was merged, this made it impossible to return any meaningful error messages when desired. This PR adds a rudimentary way to specifically allow a message detail by including
[public]
in the message.When the
[public]
tag is found in the message, the error.detail value is set and the[public]
string is removed.