Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix types in error messages
Patch courtesy of Nick Glencross
  • Loading branch information
moritz committed Jun 18, 2012
1 parent a3407de commit cb28ebf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/Exception.pm
Expand Up @@ -57,7 +57,7 @@ my class X::Method::InvalidQualifier is Exception {
has $.qualifier-type;
method message() {
"Cannot dispatch to method $.method on {$.qualifier-type.^name} "
~ "because it is no inhertied or done by {$.invocant.^name}";
~ "because it is not inherited or done by {$.invocant.^name}";
}
}

Expand Down Expand Up @@ -645,7 +645,7 @@ my class X::Anon::Augment does X::Comp {
my class X::Augment::NoSuchType does X::Comp {
has $.package-type;
has $.package;
method message() { "You tried to agument $.package-type $.package, but it does not exist" }
method message() { "You tried to augment $.package-type $.package, but it does not exist" }
}

my class X::Routine::Unwrap is Exception {
Expand All @@ -662,7 +662,7 @@ my class X::Hash::Store::OddNumber is Exception {

my class X::Package::Stubbed does X::Comp {
has @.packages;
# TODO: supress display of line number
# TODO: suppress display of line number
method message() {
"The following packages were stubbed but not defined:\n "
~ @.packages.join("\n ");
Expand Down Expand Up @@ -716,7 +716,7 @@ my class X::Str::Trans::IllegalKey is Exception {
my class X::Str::Trans::InvalidArg is Exception {
has $.got;
method message() {
"Only Pair objects are allowed as arguemnts to Str.trans, got {$.got.^name}";
"Only Pair objects are allowed as arguments to Str.trans, got {$.got.^name}";
}
}

Expand Down Expand Up @@ -846,7 +846,7 @@ my class X::Temporal::InvalidFormat is X::Temporal {
has $.target = 'Date';
has $.format;
method message() {
"Ivalid $.target string '$.invalid-str'; use $.format instead";
"Invalid $.target string '$.invalid-str'; use $.format instead";
}
}
my class X::Temporal::Truncation is X::Temporal {
Expand Down

0 comments on commit cb28ebf

Please sign in to comment.