Skip to content

Commit

Permalink
Merge pull request #4028 from aniketkulkarni17/issue-3965
Browse files Browse the repository at this point in the history
Fix error message on invalid file type import
  • Loading branch information
mathemancer authored Nov 21, 2024
2 parents 2fec79b + 8786f3c commit 443b183
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mathesar_ui/src/api/rest/utils/requestUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,11 @@ export function uploadFile<T>(
resolve(request.response as T);
}
} else {
reject(new Error('An error has occurred while uploading a file.'));
const msg = [
'An error occurred while processing the file.',
'Supported file types are CSV and TSV.',
].join(' ');
reject(new Error(msg));
}
});
},
Expand Down

0 comments on commit 443b183

Please sign in to comment.