Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

regularize error messages to use "Cannot"

  • Loading branch information...
commit 423894a104f4b10a2122ba7dc2e3160b0481654c 1 parent 4264822
@moritz moritz authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Yapsi.pm
View
6 lib/Yapsi.pm
@@ -422,13 +422,13 @@ class Yapsi::Compiler {
$register = $result-register;
}
when '&prefix:<++>' {
- die "Can't increment a constant"
+ die "Cannot increment a constant"
if $locator eq '<constant>';
push @blocksic, "inc $register",
"store $locator, $register";
}
when '&prefix:<-->' {
- die "Can't decrement a constant"
+ die "Cannot decrement a constant"
if $locator eq '<constant>';
push @blocksic, "dec $register",
"store $locator, $register";
@@ -621,7 +621,7 @@ class Yapsi::Compiler {
class Value {
has $.payload;
- method store($v) { die "Can't assign to a readonly value" }
+ method store($v) { die "Cannot assign to a readonly value" }
}
class Container {
Please sign in to comment.
Something went wrong with that request. Please try again.