sys_error()

Purpose

Displays an error message and aborts

Old name

#define _sys_error sys_error

Syntax

void sys_error(msge_nr, ADDITIONAL)

Parameters

int msg_nr

Number of error map to display

 

ADDITIONAL

Two optional parameters:

  • error number to display
  • extra error parameter

Description

The sys_error() function is used by the library functions to display an error message and then abort the program. The error map displayed corresponds to the map number on the SYSTEM mapset of the SYSTEM database. You should use your own function to display critical error messages rather than this function.

This is one of the functions that you have to rewrite if you do not wish to load the terminal manager.

See also

sys_message(), sys_request()