Provided by: golf_601.4.41-1_amd64 

NAME
report-error - (error-handling)
PURPOSE
Reports a fatal error.
SYNTAX
report-error <format>, <variable> [ , ... ]
DESCRIPTION
report-error will report a fatal error. It will format an error message according to the <format> string
and a list of <variable>s and then write it in the trace file (see directories); this happens regardless
of whether tracing is enabled or not.
See error-handling when report-error is called.
<format> string must be present and there must be at least one <variable> (it means if you want to trace
a simple string literal you still have to use "%s" as format). The reason for this is to avoid formatting
errors, and to use formatting in a consistent fashion.
FORMAT
<format> string must be a literal. Variables must follow <format> separated by commas in the same order
as placeholders. If you use any placeholders other than specified below, or the type of variables you use
do not match the type of a corresponding placeholder in <format>, your program will error out. You can
use the following placeholders in <format> (see trace-run for an example of usage):
• %s for a string
• %c for a number displayed as a character,
• %<number>s for a string output with a width of at least <number> (any excess filled with spaces to
the left),
• %ld for a number (use "lo" for displaying in octal notation and "lx" for hexadecimal notation).
• %<number>ld for a number output with a width of at least <number> (any excess filled with spaces to
the left). Use "lo" for displaying in octal notation and "lx" for hexadecimal notation.
EXAMPLES
report-error "Too many input parameters for %s, encountered total of [%ld]", "customer", num_count
SEE ALSO
Error handling
db-error error-code error-handling report-error See all documentation
$DATE $VERSION GOLF(2gg)