diff --git a/src/object.c b/src/object.c index 80d3df4..7920f30 100644 --- a/src/object.c +++ b/src/object.c @@ -74,6 +74,9 @@ void addToList(Object *dest, const Object src) void printErr(const Object *obj) { #ifdef STANDALONE + if(!obj || obj->type != TYPE_ERROR) + return; + printf("%s\n", errorText[(int)(obj->err)]); #endif return;