Crate userror [] [src]

Some basic functions and macros for printing user-facing errors in command-line programs.

Installation

Simply mark userror as a dependency in your Cargo.toml

[dependencies]
userror = "0.1.0"

By default userror prints coloured messages with ansi_term, if you do not want this use default-features = false

[dependencies]
userror = { version = "0.1.0", default-features = false }

Macros

expect

Prepend file and line info into a call to .expect().

flm

Prepend file and line info into a given message.

internal

Display an internal error message with file and line info.

Functions

error

Print an error message.

fatal

Print a fatal error message and panic.

info

Print some non-erroneous information.

internal

Print an internal error message.

warn

Print a warning message.