Consider SyntaxErrors configuration errors
This commit is contained in:
parent
1a6bac42d0
commit
52f2347108
3 changed files with 7 additions and 3 deletions
|
|
@ -207,7 +207,10 @@ export async function uploadFromActions(
|
|||
logger,
|
||||
);
|
||||
} catch (e) {
|
||||
if (e instanceof InvalidRequestError && isThirdPartyUpload) {
|
||||
if (
|
||||
(e instanceof InvalidRequestError || e instanceof SyntaxError) &&
|
||||
isThirdPartyUpload
|
||||
) {
|
||||
throw new ConfigurationError(e.message);
|
||||
}
|
||||
throw e;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue