Skip to content

Commit

Permalink
Fix missing response in catch
Browse files Browse the repository at this point in the history
  • Loading branch information
jefsmo committed Jun 2, 2018
1 parent a5a1b38 commit bc02f29
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Test.Automation.Api/ApiClientBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,9 @@ public ApiClientBase(string uri, CredentialCache credentialCache)
// Convert the raw JSON to the generic type.
return JsonConvert.DeserializeObject<T>(rawJson, converters);
}
catch (Exception)
catch (Exception ex)
{
ApiHelper.PrintResponse(response);
throw;
throw new ApplicationException(response, ex);
}
finally
{
Expand Down

0 comments on commit bc02f29

Please sign in to comment.