FIX - Add iproved error handling to new API call
FIX - Add iproved error handling to new API call

- improved error handling when find() returns err

Jacob-Manuel/swe4103-group1,Jacob-Manuel/swe4103-group1