Skip to content

Commit

Permalink
Fix issue with --backtrace without filename
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Nov 8, 2022
1 parent ed241d4 commit 563d8ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions Changes
Expand Up @@ -3,6 +3,7 @@ Revision history for App-Rak
{{$NEXT}}
- Fix issue with bare literal * being interpreted as a
Whatever, rather than as a literal '*'
- Fix issue with --backtrace without file containing backtrace

0.2.3 2022-11-05T11:56:14+01:00
- Up dependency on String::Utils to get "has-marks" support
Expand Down
9 changes: 6 additions & 3 deletions lib/App/Rak.rakumod
Expand Up @@ -2895,13 +2895,16 @@ my sub action-per-line(--> Nil) {
%listing<highlight> := False unless $pattern;
%listing<trim> := False if $before-context || $after-context;
# $pattern here is supposed to be the file with the backtrace
$rak := Rak.new: result => $reading-from-stdin
?? produce-result($*IN.slurp(:close))
!! @positionals
?? meh "Can only specify a single file with a backtrace."
!! $pattern.IO.e
?? produce-result($pattern.IO.slurp)
!! meh "handling backtrace from file(s) NYI";
!! $pattern
?? $pattern.IO.e
?? produce-result($pattern.IO.slurp)
!! meh "handling backtrace from file(s) NYI"
!! meh "Must specify a file with a backtrace.";
rak-results;
return;
Expand Down

0 comments on commit 563d8ec

Please sign in to comment.