1
0
mirror of https://github.com/sasjs/adapter.git synced 2025-12-11 09:24:35 +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'
)
.catch((err) => {
throw prefixMessage(err, 'Error while getting job state. ')
throw prefixMessage(
err,
'Error while getting job state after interval. '
)
})
postedJobState = jobState.trim()

View File

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