Skip to content
Snippets Groups Projects
Commit 583ade9f authored by Per Hedbor's avatar Per Hedbor
Browse files

Fix for somewhat better error message when decoding objects in programs, and...

Fix for somewhat better error message when decoding objects in programs, and (automatic) whitespace removal.

Rev: src/encode.c:1.54
parent e85171fe
Branches
Tags
No related merge requests found
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#include "version.h" #include "version.h"
#include "bignum.h" #include "bignum.h"
RCSID("$Id: encode.c,v 1.53 2000/02/09 16:21:46 grubba Exp $"); RCSID("$Id: encode.c,v 1.54 2000/02/16 03:58:16 per Exp $");
/* #define ENCODE_DEBUG */ /* #define ENCODE_DEBUG */
...@@ -1145,7 +1145,8 @@ static void decode_value2(struct decode_data *data) ...@@ -1145,7 +1145,8 @@ static void decode_value2(struct decode_data *data)
break; break;
} }
if(data->pickyness && sp[-1].type != T_OBJECT) if(data->pickyness && sp[-1].type != T_OBJECT)
error("Failed to decode.\n"); error("Failed to decode (got type %d; expected object).\n",
sp[-1].type);
break; break;
case TAG_FUNCTION: case TAG_FUNCTION:
...@@ -1637,5 +1638,3 @@ void f_decode_value(INT32 args) ...@@ -1637,5 +1638,3 @@ void f_decode_value(INT32 args)
assign_svalue(sp-args-1, sp-1); assign_svalue(sp-args-1, sp-1);
pop_n_elems(args); pop_n_elems(args);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment