Use getErrorMessage in log too

This commit is contained in:
Henry Mercer
2025-12-16 15:39:17 +00:00
parent 0cb86337c5
commit ae5de9a20d
3 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -231,7 +231,7 @@ test("Don't crash if uploading a database fails", async (t) => {
(v) =>
v.type === "warning" &&
v.message ===
"Failed to upload database for javascript: Error: some error message",
"Failed to upload database for javascript: some error message",
) !== undefined,
);
});
+3 -1
View File
@@ -138,7 +138,9 @@ export async function cleanupAndUploadDatabases(
}
} catch (e) {
// Log a warning but don't fail the workflow
logger.warning(`Failed to upload database for ${language}: ${e}`);
logger.warning(
`Failed to upload database for ${language}: ${util.getErrorMessage(e)}`,
);
reports.push({
language,
error: util.getErrorMessage(e),