rescue to get the path of error