(if (not (member msg '("Function cancelled" "quit / exit abort")))
(princ (strcat "\nError: " msg))
It seems to work but then my lisp routines don't usually create errors! :2funny:(if (and msg (not (wcmatch (strcase msg t) "*break,*cancel*,*exit*")))
(princ (strcat "\nError: " msg))
The two bits of code above will catch slightly different messages since they do not contain the same words.So that explains it! Thank you both for taking the time to answer my question.Please you test the error/s inside thisLisp.