Corrected bad error printing on PC

This commit is contained in:
= 2020-05-06 05:20:09 +01:00
parent a990084da7
commit 63be5f9435
1 changed files with 3 additions and 0 deletions

View File

@ -74,6 +74,9 @@ void addToList(Object *dest, const Object src)
void printErr(const Object *obj) void printErr(const Object *obj)
{ {
#ifdef STANDALONE #ifdef STANDALONE
if(!obj || obj->type != TYPE_ERROR)
return;
printf("%s\n", errorText[(int)(obj->err)]); printf("%s\n", errorText[(int)(obj->err)]);
#endif #endif
return; return;