Branch: Tag:

1999-12-10

1999-12-10 22:41:09 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Improved error-message.

Rev: src/encode.c:1.48
Rev: src/opcodes.c:1.69

25:   #include "version.h"   #include "bignum.h"    - RCSID("$Id: encode.c,v 1.47 1999/11/23 22:38:06 grubba Exp $"); + RCSID("$Id: encode.c,v 1.48 1999/12/10 22:40:33 grubba Exp $");      /* #define ENCODE_DEBUG */   
857:    break;       default: -  error("Failed to decode type.\n"); +  error("Failed to decode type " +  "(object(%s), expected object(zero|program)).\n", +  get_name_of_type(sp[-1].type));    }    pop_stack();    type_stack_reverse();