Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix error messages referring to the wrong op.
Thanks to ilmari++ for catching my copy&pasto!
  • Loading branch information
niner committed Nov 25, 2015
1 parent 45dba5c commit 6d3179e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/vm/jvm/runtime/org/perl6/nqp/runtime/Ops.java
Expand Up @@ -554,11 +554,11 @@ public static SixModelObject lockfh(SixModelObject obj, long flag, ThreadContext
}
else
throw ExceptionHandling.dieInternal(tc,
"This handle does not support seek");
"This handle does not support locking");
}
else {
throw ExceptionHandling.dieInternal(tc,
"seekfh requires an object with the IOHandle REPR");
"lockfh requires an object with the IOHandle REPR");
}
}

Expand All @@ -571,11 +571,11 @@ public static SixModelObject unlockfh(SixModelObject obj, ThreadContext tc) {
}
else
throw ExceptionHandling.dieInternal(tc,
"This handle does not support seek");
"This handle does not support locking");
}
else {
throw ExceptionHandling.dieInternal(tc,
"seekfh requires an object with the IOHandle REPR");
"unlockfh requires an object with the IOHandle REPR");
}
}

Expand Down

0 comments on commit 6d3179e

Please sign in to comment.