-
QuestionWhat I'm seeing is that when I'm in the dev or staging node environment, my custom error strings that are returned from the rule are correct and all my tests (Jest unit and integration) pass that are expecting the specific custom error message that should get returned from the rule if it Backgroundcurrrently using graphql-shield v. permissions options being used/set: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Update/Answerproduction ended up not factoring into my question or issue. A utility function I was using in my rule was throwing an error without it being handled. With debug false in production the fallback error message was being used because of the error being thrown and not returned by the rule itself. |
Beta Was this translation helpful? Give feedback.
Update/Answer
production ended up not factoring into my question or issue. A utility function I was using in my rule was throwing an error without it being handled. With debug false in production the fallback error message was being used because of the error being thrown and not returned by the rule itself.