Skip to content

Commit

Permalink
Supress line number if throw X::Package::Stubbed
Browse files Browse the repository at this point in the history
  • Loading branch information
cuonglm committed Sep 11, 2017
1 parent 0ca5ffa commit edac1d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/Exception.pm
Expand Up @@ -1898,11 +1898,13 @@ my class X::Package::UseLib does X::Comp {
}
my class X::Package::Stubbed does X::Comp {
has @.packages;
# TODO: suppress display of line number
method message() {
"The following packages were stubbed but not defined:\n "
~ @.packages.join("\n ");
}
multi method gist(::?CLASS:D: :$sorry = True, :$expect = True) {
$.message;
}
}

my class X::Phaser::PrePost is Exception {
Expand Down

0 comments on commit edac1d6

Please sign in to comment.