Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit 2e13f80

Browse files
committed
Leaving exception.
1 parent 7d4ce62 commit 2e13f80

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/ApiService/ApiService/onefuzzlib/JobResultOperations.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ private async Async.Task<bool> TryUpdate(Job job, JobResultType resultType, Dict
7676

7777
var r = await Insert(jobResult);
7878
if (!r.IsOk) {
79-
_logTracer.AddHttpStatus(r.ErrorV);
80-
_logTracer.LogInformation("failed to insert job result {JobId}", jobResult.JobId);
79+
throw new InvalidOperationException($"failed to insert job result {jobResult.JobId}");
8180
}
8281
_logTracer.LogInformation("created job result {JobId}", jobResult.JobId);
8382
} else {
@@ -87,8 +86,7 @@ private async Async.Task<bool> TryUpdate(Job job, JobResultType resultType, Dict
8786

8887
var r = await Update(jobResult);
8988
if (!r.IsOk) {
90-
_logTracer.AddHttpStatus(r.ErrorV);
91-
_logTracer.LogInformation("failed to update job result {JobId}", jobResult.JobId);
89+
throw new InvalidOperationException($"failed to insert job result {jobResult.JobId}");
9290
}
9391
_logTracer.LogInformation("updated job result {JobId}", jobResult.JobId);
9492
}

0 commit comments

Comments
 (0)