Skip to content

Commit

Permalink
do not surround error messages with parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 15, 2014
1 parent 35852ab commit 33b9dcc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Command/cpanify.pm
Expand Up @@ -32,7 +32,7 @@ sub run {
my $msg = $tx->error->{message};
if ($code == 401) { $msg = 'Wrong username or password.' }
elsif ($code == 409) { $msg = 'File already exists on CPAN.' }
die qq{Problem uploading file "$file". ($msg)\n};
die qq{Problem uploading file "$file": $msg\n};
}

say 'Upload successful!';
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Command/get.pm
Expand Up @@ -65,7 +65,7 @@ sub run {
STDOUT->autoflush(1);
my $tx = $ua->start($ua->build_tx($method, $url, \%headers, $content));
my $err = $tx->error;
warn qq{Problem loading URL "@{[$tx->req->url]}". ($err->{message})\n}
warn qq{Problem loading URL "@{[$tx->req->url]}": $err->{message}\n}
if $err && !$err->{code};

# JSON Pointer
Expand Down
2 changes: 1 addition & 1 deletion lib/ojo.pm
Expand Up @@ -45,7 +45,7 @@ sub _request {

my $tx = $ua->start($ua->build_tx(@_));
my $err = $tx->error;
warn qq/Problem loading URL "@{[$tx->req->url]}". ($err->{message})\n/
warn qq/Problem loading URL "@{[$tx->req->url]}": $err->{message}\n/
if $err && !$err->{code};

return $tx->res;
Expand Down

0 comments on commit 33b9dcc

Please sign in to comment.