Skip to content

Commit d835e93

Browse files
committed
Sync errors to get native num array tests happy.
1 parent 24b7c8d commit d835e93

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/vm/jvm/runtime/org/perl6/nqp/sixmodel/SixModelObject.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,22 +50,22 @@ public long is_attribute_initialized(ThreadContext tc, SixModelObject class_hand
5050
* Boxing related functions.
5151
*/
5252
public void set_int(ThreadContext tc, long value) {
53-
throw ExceptionHandling.dieInternal(tc, this.st.REPR.name + " representation can not box a native int");
53+
throw ExceptionHandling.dieInternal(tc, "This type cannot box a native integer");
5454
}
5555
public long get_int(ThreadContext tc) {
56-
throw ExceptionHandling.dieInternal(tc, this.st.REPR.name + " representation can not unbox to a native int");
56+
throw ExceptionHandling.dieInternal(tc, "This type cannot unbox to a native integer");
5757
}
5858
public void set_num(ThreadContext tc, double value) {
59-
throw ExceptionHandling.dieInternal(tc, this.st.REPR.name + " representation can not box a native num");
59+
throw ExceptionHandling.dieInternal(tc, "This type cannot box a native number");
6060
}
6161
public double get_num(ThreadContext tc) {
62-
throw ExceptionHandling.dieInternal(tc, this.st.REPR.name + " representation can not unbox to a native num");
62+
throw ExceptionHandling.dieInternal(tc, "This type cannot unbox to a native number");
6363
}
6464
public void set_str(ThreadContext tc, String value) {
65-
throw ExceptionHandling.dieInternal(tc, this.st.REPR.name + " representation can not box a native str");
65+
throw ExceptionHandling.dieInternal(tc, "This type cannot box a native string");
6666
}
6767
public String get_str(ThreadContext tc) {
68-
throw ExceptionHandling.dieInternal(tc, this.st.REPR.name + " representation can not unbox to a native str");
68+
throw ExceptionHandling.dieInternal(tc, "This type cannot unbox to a native string");
6969
}
7070
public void set_boxing_of(ThreadContext tc, long reprId, Object value) {
7171
throw ExceptionHandling.dieInternal(tc, this.st.REPR.name + " representation can not box "

0 commit comments

Comments
 (0)