Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
"Can not" => "Cannot" for a few error messages."
  • Loading branch information
peschwa committed Jun 23, 2015
1 parent 1d5165f commit 42b8722
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vm/jvm/runtime/org/perl6/nqp/runtime/Ops.java
Expand Up @@ -2141,7 +2141,7 @@ public static void invokeDirect(ThreadContext tc, SixModelObject invokee, CallSi
else {
InvocationSpec is = invokee.st.InvocationSpec;
if (is == null)
throw ExceptionHandling.dieInternal(tc, "Can not invoke this object");
throw ExceptionHandling.dieInternal(tc, "Cannot invoke this object");
if (is.ClassHandle != null)
cr = (CodeRef)invokee.get_attribute_boxed(tc, is.ClassHandle, is.AttrName, is.Hint);
else {
Expand Down Expand Up @@ -2292,7 +2292,7 @@ public static SixModelObject hllhash(ThreadContext tc) {
}
public static SixModelObject findmethod(ThreadContext tc, SixModelObject invocant, String name) {
if (invocant == null)
throw ExceptionHandling.dieInternal(tc, "Can not call method '" + name + "' on a null object");
throw ExceptionHandling.dieInternal(tc, "Cannot call method '" + name + "' on a null object");
invocant = decont(invocant, tc);

SixModelObject meth = invocant.st.MethodCache.get(name);
Expand All @@ -2303,7 +2303,7 @@ public static SixModelObject findmethod(ThreadContext tc, SixModelObject invocan
}
public static SixModelObject findmethod(SixModelObject invocant, String name, ThreadContext tc) {
if (invocant == null)
throw ExceptionHandling.dieInternal(tc, "Can not call method '" + name + "' on a null object");
throw ExceptionHandling.dieInternal(tc, "Cannot call method '" + name + "' on a null object");
invocant = decont(invocant, tc);

Map<String, SixModelObject> cache = invocant.st.MethodCache;
Expand Down

0 comments on commit 42b8722

Please sign in to comment.