Fix error handling for when recover returns a string