errormsgonly
Displays the error string s without any error stack information and ends the execution.
Syntax
errormsgonly(s)
Inputs
- s
- Type: string
Example
Print number in error message:
A = 10;
errormsgonly('ERROR MESSAGE NUMBER %d', A)
Error: ERROR MESSAGE NUMBER 10