Permalink
Browse files

Add a bit mroe information for unknown opcodes.

  • Loading branch information...
1 parent 5eb6ca8 commit 9eb38bc7b46adf0571fd40055a604cb8f67ff2c8 @atrodo committed Dec 14, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −1 core.c
View
5 core.c
@@ -783,7 +783,10 @@ core_exec(Lorito_Interp *interp)
break;
default:
// Error
- INVALID_OP("unknown");
+ ;
+ char error[15];
+ sprintf(error, "unknown (%d)", opcode);
+ INVALID_OP(error);
break;
// END CORE_OPS
}

0 comments on commit 9eb38bc

Please sign in to comment.