1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-20 10:30:06 +00:00

fix(error-handling): console logged error

This commit is contained in:
Yury Shkoda
2021-03-09 15:52:00 +03:00
parent 0f5702e21b
commit bbe9633dc8
2 changed files with 5 additions and 1 deletions

View File

@@ -1110,7 +1110,10 @@ export class SASViyaApiClient {
'text/plain' 'text/plain'
) )
.catch((err) => { .catch((err) => {
throw prefixMessage(err, 'Error while getting job state. ') throw prefixMessage(
err,
'Error while getting job state after interval. '
)
}) })
postedJobState = jobState.trim() postedJobState = jobState.trim()

View File

@@ -106,6 +106,7 @@ export class RequestClient implements HttpClient {
} }
) )
).catch((err) => { ).catch((err) => {
console.log(`[err]`, err)
throw prefixMessage(err, 'Error while handling error. ') throw prefixMessage(err, 'Error while handling error. ')
}) })
}) })