Skip to content

Commit 08dcfdd

Browse files
Apply suggestions from code review
1 parent b87ae49 commit 08dcfdd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/node/src/client.ts.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class Client {
201201
const file = Object.values(originalPayload).find((value) => value instanceof File);
202202

203203
if (!file) {
204-
throw new Error('No file found in payload');
204+
throw new Error('File not found in payload');
205205
}
206206

207207
if (file.size <= Client.CHUNK_SIZE) {

templates/web/src/client.ts.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ class Client {
622622
const file = Object.values(originalPayload).find((value) => value instanceof File);
623623

624624
if (!file) {
625-
throw new Error('No file found in payload');
625+
throw new Error('File not found in payload');
626626
}
627627

628628
if (file.size <= Client.CHUNK_SIZE) {

0 commit comments

Comments
 (0)