From: cphillip Date: Tue, 6 May 2003 20:20:44 +0000 (+0000) Subject: o exitDie fixes. X-Git-Tag: OPENSSH_GSI_GPT_2_3~1 X-Git-Url: http://andersk.mit.edu/gitweb/gssapi-openssh.git/commitdiff_plain/21e6247653a6e40bb06b7f7a644b62999f17797e o exitDie fixes. --- diff --git a/setup/setup-openssh.pl b/setup/setup-openssh.pl index e83032a..86772ab 100644 --- a/setup/setup-openssh.pl +++ b/setup/setup-openssh.pl @@ -24,7 +24,7 @@ $gptpath = $ENV{GPT_LOCATION}; $gpath = $ENV{GLOBUS_LOCATION}; if (!defined($gpath)) { - exitDie "GLOBUS_LOCATION needs to be set before running this script" + exitDie("ERROR: GLOBUS_LOCATION needs to be set before running this script!\n"); } # @@ -1047,7 +1047,7 @@ sub readFile my($filename) = @_; my($data); - open(IN, "$filename") || exitDie "Can't open '$filename': $!"; + open(IN, "$filename") || exitDie("ERROR: Can't open '$filename': $!\n"); $/ = undef; $data = ; $/ = "\n"; @@ -1072,7 +1072,7 @@ sub writeFile if ( !defined($filename) || (length($filename) lt 1) ) { - exitDie "Filename is undefined"; + exitDie("ERROR: Filename is undefined!\n"); } # @@ -1108,7 +1108,7 @@ sub action if (($result or $?) and $command !~ m!patch!) { - exitDie "ERROR: Unable to execute command: $!\n"; + exitDie("ERROR: Unable to execute command: $!\n"); } }