Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

regularize error messages to use "Cannot"

  • Loading branch information...
commit 423894a104f4b10a2122ba7dc2e3160b0481654c 1 parent 4264822
Moritz Lenz authored March 21, 2011

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  lib/Yapsi.pm
6  lib/Yapsi.pm
@@ -422,13 +422,13 @@ class Yapsi::Compiler {
422 422
                     $register = $result-register;
423 423
                 }
424 424
                 when '&prefix:<++>' {
425  
-                    die "Can't increment a constant"
  425
+                    die "Cannot increment a constant"
426 426
                         if $locator eq '<constant>';
427 427
                     push @blocksic, "inc $register",
428 428
                                     "store $locator, $register";
429 429
                 }
430 430
                 when '&prefix:<-->' {
431  
-                    die "Can't decrement a constant"
  431
+                    die "Cannot decrement a constant"
432 432
                         if $locator eq '<constant>';
433 433
                     push @blocksic, "dec $register",
434 434
                                     "store $locator, $register";
@@ -621,7 +621,7 @@ class Yapsi::Compiler {
621 621
 class Value {
622 622
     has $.payload;
623 623
 
624  
-    method store($v) { die "Can't assign to a readonly value" }
  624
+    method store($v) { die "Cannot assign to a readonly value" }
625 625
 }
626 626
 
627 627
 class Container {

0 notes on commit 423894a

Please sign in to comment.
Something went wrong with that request. Please try again.