Updating the try method to return a proper error_stack