myshell 2.0.0
Loading...
Searching...
No Matches
msh_error.cpp File Reference

Error related utilities. More...

Functions

void error_log ()
 Log the line number and path of the executed script, if any.
 
void msh_error (const std::string &msg)
 Print an error message to stderr with a myshell: prefix.
 

Detailed Description

Error related utilities.

Function Documentation

◆ error_log()

void error_log ( )

Log the line number and path of the executed script, if any.

See also
msh_error()

◆ msh_error()

void msh_error ( const std::string & msg)

Print an error message to stderr with a myshell: prefix.

Before printing the message, error_log() is called to log the line number and path of the executed script, if any.

See also
error_log()
Parameters
msgError message.