GitHub user sebbASF opened an issue: https://github.com/apache/incubator-ponymail/issues/150
Enhance: elastic.lua checkReturn should throw errors in the callers context At present the checkReturn function throws an error in its context. That's not very helpful, as the error was not caused by the function. It would be better to throw the error in the callers context, or perhaps even the callers caller. e.g.. replace error("Backend Database returned code " .. code .. "!") with error("Backend Database returned code " .. code .. "!", 2) or error("Backend Database returned code " .. code .. "!", 3) ---- ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---