Skip to content

Commit

Permalink
Prints the error to make it a bit more informative Raku#3871
Browse files Browse the repository at this point in the history
  • Loading branch information
JJ committed Apr 17, 2022
1 parent 30206e4 commit 15ec823
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions xt/check-signatures.t
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,14 @@ my $doc-dir = $*CWD;

given $*RAKU.compiler.verbose-config<Raku><version>.split('-') {
chdir $rakudo-src-dir;
when .elems == 1 { run (|<git checkout>, |("tags/{.[0]}")), :out, :err}
when .elems == 3 { run «git checkout {.[2].substr(1..*)}», :out, :err }
when .elems == 1 {
my $checkout = run (|<git checkout>, |("tags/{ .[0] }")), :out, :err;
my $checkout-error = $checkout.err.slurp(:close);
if $checkout-error {
die "Error checking out tag from source, $checkout-error";
}
}
when .elems == 3 { run «git checkout { .[2].substr(1 ..*) }», :out, :err }
}

my token signature { '('[ <-[()]>* <~~> <-[()]>* ]* ')' | '(' <-[()]>* ')' }
Expand Down

0 comments on commit 15ec823

Please sign in to comment.