Corrected bad error printing on PC
This commit is contained in:
parent
a990084da7
commit
63be5f9435
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue