compatibility fix

Error handling was not working under octave.
add comment with new idea