Skip to content

Commit

Permalink
Raise an exception if a non OK status code is returned from Splunk
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherJamesMorris committed Apr 28, 2022
1 parent a4da815 commit c13bb07
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/gpconnect-analytics.Functions/GetDataFromApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ private async Task ExecuteDownloadFromSplunk(FileType fileType)
default:
_logger?.LogWarning(result?.ExtractResponseMessage.ToString());
break;
throw new Exception($"Splunk has returned the following HTTP status code {result?.ExtractResponseMessage.StatusCode}");
}
}
else
Expand Down

0 comments on commit c13bb07

Please sign in to comment.