You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-26 22:41:17 +02:00
Chore: Add no-throw-literal and prefer-promise-reject-errors eslint rules (#10371)
This commit is contained in:
@@ -252,6 +252,7 @@ class FileApiDriverAmazonS3 {
|
||||
output = await response.text();
|
||||
// we need to make sure that errors get thrown as we are manually fetching above.
|
||||
if (!response.ok) {
|
||||
// eslint-disable-next-line no-throw-literal -- Old code before rule was applied
|
||||
throw { name: response.statusText, output: output };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user