toupper_err.s: simple error handling