Skip to content

Commit

Permalink
Better error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanwills-optus committed Aug 5, 2019
1 parent e856ee5 commit 2c413fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Group/Git/Stash.pm
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ sub _repos {

while ($more) {
$mech->get( $url . $start );
my $response = decode_json $mech->content;
my $response = eval { decode_json $mech->content }
or die $@ . "Possibly check your password\n";

REPO:
for my $repo (@{ $response->{values} }) {
Expand Down

0 comments on commit 2c413fd

Please sign in to comment.