security: fix for code scanning alert no. 12: Use of externally-controlled format string (#3803)

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
Huang Xin
2026-04-09 12:23:08 +08:00
committed by GitHub
parent 13ff96db85
commit 6072b0dcbd
@@ -147,7 +147,7 @@ async function processFileKeys(
const downloadUrl = await getDownloadSignedUrl(fileRecord.file_key, 1800);
return { fileKey, downloadUrl };
} catch (error) {
console.error(`Error creating signed URL for ${fileKey}:`, error);
console.error('Error creating signed URL for %s:', fileKey, error);
return { fileKey, downloadUrl: undefined };
}
}),