]> git.plutz.net Git - busy/commitdiff
write messages for fatal errors to debug channel
authorpaul <paul@plutz.net>
Wed, 18 Mar 2015 12:12:54 +0000 (12:12 +0000)
committerpaul <paul@plutz.net>
Wed, 18 Mar 2015 12:12:54 +0000 (12:12 +0000)
svn path=/trunk/; revision=59

index.cgi

index 618fac41982ebbe15e90c5bb4caa5ecb38589abb..6f6f9601b67ce067a784b798c9f301f2971e80f2 100755 (executable)
--- a/index.cgi
+++ b/index.cgi
@@ -46,7 +46,8 @@ debug() { #change to false to disable debugging
 }
 
 die() {
-  echo -E "$*"
+  debug "$*"
+  echo -E "$*" >>/dev/stderr
   exit 1
 }