diff options
author | Niels Thykier <niels@thykier.net> | 2015-06-15 20:07:41 +0200 |
---|---|---|
committer | Niels Thykier <niels@thykier.net> | 2015-06-15 20:07:41 +0200 |
commit | 129eed5e6eb192c383ec05c021d317293c492320 (patch) | |
tree | 20a75a020067e47e604ed345b73c74e6e6503ce4 /doc/PROGRAMMING | |
parent | 14f5f207aedd5bb8a79a7ddca14d75b49b2f73e7 (diff) | |
parent | 49df7380cd2279dd30d965b2a88d81ccf7fc8216 (diff) | |
download | debhelper-129eed5e6eb192c383ec05c021d317293c492320.tar.gz |
Merge branch 'master' into super-cow-ddebs-support
Conflicts:
Debian/Debhelper/Dh_Lib.pm
debian/changelog
Diffstat (limited to 'doc/PROGRAMMING')
-rw-r--r-- | doc/PROGRAMMING | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/PROGRAMMING b/doc/PROGRAMMING index 760b730f..701af6b8 100644 --- a/doc/PROGRAMMING +++ b/doc/PROGRAMMING @@ -174,6 +174,12 @@ nonquiet_print($message) error($errormsg) Pass this command a string, it will output it to standard error and exit. +error_exitcode($cmd) + Pass this subroutine a string (representing a command line), it will + output a message describing that the command failed to standard error + and exit. Note that this relies on the value of $? to produce a + meaningful error message. Even if $? is 0, this /will/ still terminate + the program (although with a rather unhelpful message). warning($message) Pass this command a string, and it will output it to standard error as a warning message. |