Skip to content

Commit f471b59

Browse files
committed
chore: fix some linting and error messages
1 parent e569fa7 commit f471b59

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

apps/web/src/utils/upload2.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function getTemplateFilename(instrumentInternal: AnyUnilingualFormInstrument['in
6363
}
6464

6565
//functions to extract set and record array strings into values
66-
export function extractSetEntry(entry: string) {
66+
function extractSetEntry(entry: string) {
6767
const result = /SET\(\s*(.*?)\s*\)/.exec(entry);
6868
if (!result?.[1]) {
6969
throw new Error(
@@ -73,7 +73,7 @@ export function extractSetEntry(entry: string) {
7373
return result[1];
7474
}
7575

76-
export function extractRecordArrayEntry(entry: string) {
76+
function extractRecordArrayEntry(entry: string) {
7777
const result = /RECORD_ARRAY\(\s*(.*?)[\s;]*\)/.exec(entry);
7878
if (!result?.[1]) {
7979
throw new Error(
@@ -437,13 +437,13 @@ namespace Zod3 {
437437
// success: false
438438
// });
439439
// }
440-
if (interpreterResult.success) jsonLine[headers[j]!] = interpreterResult!.value;
440+
if (interpreterResult.success) jsonLine[headers[j]!] = interpreterResult.value;
441441
} catch (error: unknown) {
442442
if (error instanceof UploadError) {
443443
return resolve({
444444
message: {
445-
en: `${error.description.en} at column name: '${key}' and row number`,
446-
fr: `${error.description.fr} au nom de colonne : '${key}'`
445+
en: `${error.description.en} at column name: '${key}' and row number '${rowNumber}'`,
446+
fr: `${error.description.fr} au nom de colonne : '${key}' et numéro de ligne '${rowNumber}`
447447
},
448448
success: false
449449
});

0 commit comments

Comments
 (0)