In PHP, I would have
- Code: Select all
nuDisplayError('This is an error!', 1);
- Code: Select all
nuDisplayError('That is another error!', 2);
Note the additional 1 and 2. These would be exit status (compare https://www.php.net/manual/en/function.exit.php )
In js, one could query the status
- Code: Select all
if (errorStatus() == '1') {
}
Knowning the status, I would have a different case handling, depending on the error.
Is this something that can be added?