Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Improve error on unimplemented serialization object type to be more i…
…nformative.
  • Loading branch information
jnthn committed Feb 25, 2012
1 parent 894a1f7 commit 947ad8b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/6model/serialization.c
Expand Up @@ -445,7 +445,8 @@ void write_ref_func(PARROT_INTERP, SerializationWriter *writer, PMC *ref) {
}
else {
Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_INVALID_OPERATION,
"Serialization Error: Unimplemented object type passed to write_ref");
"Serialization Error: Unimplemented object type '%Ss' passed to write_ref",
ref->vtable->whoami);
}

/* Write the discriminator. */
Expand Down Expand Up @@ -489,7 +490,8 @@ void write_ref_func(PARROT_INTERP, SerializationWriter *writer, PMC *ref) {
break;
default:
Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_INVALID_OPERATION,
"Serialization Error: Unimplemented object type passed to write_ref");
"Serialization Error: Unimplemented object type '%Ss' passed to write_ref",
ref->vtable->whoami);
}
}

Expand Down

0 comments on commit 947ad8b

Please sign in to comment.