From e6ab5f918fd5dab01f38e22957cb043bca77b7e2 Mon Sep 17 00:00:00 2001 From: Yury Shkoda Date: Wed, 9 Sep 2020 15:08:36 +0300 Subject: [PATCH] chore(move folder): improved error handling --- src/SASViyaApiClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SASViyaApiClient.ts b/src/SASViyaApiClient.ts index 2592747..990c2bc 100644 --- a/src/SASViyaApiClient.ts +++ b/src/SASViyaApiClient.ts @@ -1291,7 +1291,7 @@ export class SASViyaApiClient { `${this.serverUrl}${url}`, requestInfo ).catch((err) => { - return { result: null } + throw err }) if (!folder) return undefined