Must return a numeric value from -32768 to 32767; found bad value

Synopsis
Your script was run by a program that expects you to return a number from -32768 to 32767, for example:

EXIT 0
Cause
You specified a variable name whose value is intended to be the numeric return, but that variable's value is not numeric, or contains a fractional component (ie, a decimal point), or is outside of the range.

Cure
Make sure the variable's value contains only the digits 0 to 9, and it's a numeric value from -32768 to 32767, inclusive.

Cause
You forgot to specify a number after the RETURN or EXIT keyword. This will likely be the case if is "".

Cure
Make sure that you put some number from -32768 to 32767, inclusive, after the RETURN or EXIT keyword.