Skip to content

Commit e8bd839

Browse files
Potential fix for code scanning alert no. 6: Use of externally-controlled format string
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: fabiendostie <[email protected]>
1 parent dc1e98e commit e8bd839

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

workers/csv-validator.worker.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,8 @@ try {
246246
valid = validate(processedRowData);
247247
} catch (err) {
248248
console.error(
249-
`Worker: Error during conversion/structure for row ${csvRowNum}:`,
249+
"Worker: Error during conversion/structure for row %s:",
250+
csvRowNum,
250251
err,
251252
);
252253
conversionErrorMsg = err.message || "Unknown conversion error";

0 commit comments

Comments
 (0)