Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
atir-naveed-geeksltd committed Dec 29, 2024
1 parent 85ce1bc commit 16287c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Olive.Azure.DocumentAnalyzer/DocumentAnalyze.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ public async Task<DocumentAnalyzeResult> AnalyzeDocumentAsync(byte[] fileData, s
}
else
{
throw new Exception($"Failed to analyze document. Error Message: {(await response.Content.ReadAsStringAsync())}", );
var message = await response.Content.ReadAsStringAsync();
throw new Exception($"Failed to analyze document. Error Message: {message}", );
}
}
catch (Exception ex)
Expand Down

0 comments on commit 16287c5

Please sign in to comment.