Skip to content

Commit

Permalink
add message to error
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhathcock committed May 14, 2024
1 parent 29734f5 commit 915973d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Build/Github.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ public static async Task BuildInstallers(string token, string runId)
var response = await client.SendAsync(request).ConfigureAwait(false);
if (!response.IsSuccessStatusCode)
{
throw new InvalidOperationException(response.StatusCode + response.ReasonPhrase);
throw new InvalidOperationException(
$"{response.StatusCode} {response.ReasonPhrase} {await response.Content.ReadAsStringAsync().ConfigureAwait(false)}"
);
}
}
}

0 comments on commit 915973d

Please sign in to comment.