Provide better error message in case of exception.