summaryrefslogtreecommitdiff
path: root/doc/PROGRAMMING
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2015-06-15 20:07:41 +0200
committerNiels Thykier <niels@thykier.net>2015-06-15 20:07:41 +0200
commit129eed5e6eb192c383ec05c021d317293c492320 (patch)
tree20a75a020067e47e604ed345b73c74e6e6503ce4 /doc/PROGRAMMING
parent14f5f207aedd5bb8a79a7ddca14d75b49b2f73e7 (diff)
parent49df7380cd2279dd30d965b2a88d81ccf7fc8216 (diff)
downloaddebhelper-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/PROGRAMMING6
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.