The error messages were no very helpful when logging err.description()
Instead, using err.value(), we are able to print out the actual MOPointer value with a helpful error message
err.value().description() would technically also work, but could cause problems if copy/pasted since we will need to ensure that err.value() is not null before calling
The following issues were fixed:
:
) on line 232, this has been removederr
is anMOPointer
,err !== null
always evaluates to trueerr.value() !== null
we are able to fix the issueMOPointer
: https://github.com/logancollins/Mocha/blob/master/Mocha/Objects/MOPointer.herr.description()
err.value()
, we are able to print out the actualMOPointer
value with a helpful error messageerr.value().description()
would technically also work, but could cause problems if copy/pasted since we will need to ensure thaterr.value()
is not null before calling