[Rt-commit] r5920 - in rt/branches/3.7-EXPERIMENTAL: .

ruz at bestpractical.com ruz at bestpractical.com
Tue Sep 12 18:53:18 EDT 2006


Author: ruz
Date: Tue Sep 12 18:53:17 2006
New Revision: 5920

Modified:
   rt/branches/3.7-EXPERIMENTAL/   (props changed)
   rt/branches/3.7-EXPERIMENTAL/bin/rt-mailgate.in

Log:
 r3722 at cubic-pc:  cubic | 2006-09-13 03:01:47 +0400
 rt-mailgate
 * don't die when --url is not specified, but print error and exit,
   user is not interested in information about line of the code.


Modified: rt/branches/3.7-EXPERIMENTAL/bin/rt-mailgate.in
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/bin/rt-mailgate.in	(original)
+++ rt/branches/3.7-EXPERIMENTAL/bin/rt-mailgate.in	Tue Sep 12 18:53:17 2006
@@ -69,7 +69,8 @@
 }
 
 for (qw(url)) {
-    die "$0 invoked improperly\n\nNo $_ provided to mail gateway!\n" unless $opts{$_};
+    print STDERR "$0 invoked improperly\n\nNo $_ provided to mail gateway!\n" unless $opts{$_};
+    exit 1;
 }
 
 my $ua      = LWP::UserAgent->new();


More information about the Rt-commit mailing list