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
+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),