set result to empty in the event of an error