mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-05-17 07:13:36 +02:00
fix bugs and report better errors
This commit is contained in:
@@ -84,8 +84,9 @@ export default async function (job: SandboxedJob<RepoJobData, void>) {
|
||||
} catch { /* ignored */ }
|
||||
}
|
||||
logger.error("finished with error", {
|
||||
...serializeError(error),
|
||||
repoId: job.data.repoId,
|
||||
err: serializeError(error),
|
||||
url: `/api/repo/${job.data.repoId}`,
|
||||
});
|
||||
try {
|
||||
await repo.updateStatus(
|
||||
@@ -94,8 +95,9 @@ export default async function (job: SandboxedJob<RepoJobData, void>) {
|
||||
);
|
||||
} catch (persistError) {
|
||||
logger.error("failed to persist ERROR status", {
|
||||
...serializeError(persistError),
|
||||
repoId: job.data.repoId,
|
||||
err: serializeError(persistError),
|
||||
url: `/api/repo/${job.data.repoId}`,
|
||||
});
|
||||
}
|
||||
throw error;
|
||||
|
||||
Reference in New Issue
Block a user