TABLE OF CONTENTS


::pwtk::error

SYNOPSIS

proc ::pwtk::error {msg {exit_status 0}} {

DESCRIPTION

Print the error message and raise an error if exit_status >= 0.

ARGUMENTS

SOURCE

    global debug
    variable catch_error

    stderr_msg_ ERROR $msg
    
    if { $exit_status } {
        if { ([info exists debug] && $debug) || $::tcl_interactive || $catch_error } {
            ::error ""
        } else {
            puts stderr "Aborting ..."
            exit $exit_status
        }
    }
}