spnIsError function

Check for spectrino error in a function result