Improve error reporting for parse-decimal function