Skip to content

Commit

Permalink
[nci]: Update the "Illegal type" message of UnManagedStruct to at lea…
Browse files Browse the repository at this point in the history
…st tell us what type was illegal.
  • Loading branch information
pmichaud committed May 17, 2011
1 parent 20a159d commit 328122b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pmc/unmanagedstruct.pmc
Expand Up @@ -761,7 +761,7 @@ calc_offsets(PARROT_INTERP, ARGIN(PMC *pmc), ARGIN(PMC *value), size_t toff)
if (type < enum_first_type || type >= enum_last_type)
Parrot_ex_throw_from_c_args(interp, NULL,
EXCEPTION_INVALID_OPERATION,
"Illegal type in initializer for struct");
"Illegal type (%d) in initializer for struct", type);

if (count <= 0) {
count = 1;
Expand Down

0 comments on commit 328122b

Please sign in to comment.