Accessing environment variables that doesnot exist doesnot show custom error

Comments

1 comment

  • Avatar
    michiel

    The env variable will default to an empty value when it doesn't exist. You could do the following:

     

    <throwError>

       ...

      <ruleList>
         <compareText text="${env(YOUR_ENV)}" value="" logic="equals"/>
        </ruleList>

           

    </throwError>

        

      

Please sign in to leave a comment.