Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear QV Expert,
Today I was looking for a possibility to customize the log file error at the end of the file should be showing the message which we want to show.
2017-11-24 14:12:29 Error: Cannot open file: 'path'
2017-11-24 14:12:29 Execution Failed
2017-11-24 14:12:29 Execution finished.
instead of this
2017-11-24 14:12:29 Error: My Personal Message to appear here...
2017-11-24 14:12:29 Execution Failed
2017-11-24 14:12:29 Execution finished.
Something like updating the
ScriptErrorList=' Custom Message'
Also, we want to fail the QV reload and send the log message accordingly.
To do so we have Set the ErrorMode =2 which is also not working as intended. Any Idea or help.
AFAIK it's not possible. But you could create an own logic by using trace to return customized error-messages. This meant using the ErrorMode 0 and querying the ScriptError after each essential load-step. To not cluttering the script too much you could put those logic into a sub-routine similar to this one: Re: TRACE - directly enter an expression which returned the ScriptError and maybe some further results and could also contain an exit script; to break the script on this point.
- Marcus