Merge pull request #153 from Permissionless-Software-Foundation/ct-unstable

fix(errors): Throwing rate limit errors as Error objects
This commit is contained in:
Chris Troutner
2021-06-19 09:44:11 -07:00
committed by GitHub
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -137,6 +137,8 @@ class Transaction {
return txDetails
} catch (err) {
console.error('Error in transactions.js/get()')
if (err.error) throw new Error(err.error)
throw err
}
}
+2
View File
@@ -276,6 +276,8 @@ class UTXO {
return retAry
} catch (err) {
console.error('Error in bchjs.utxo.get()')
if (err.error) throw new Error(err.error)
throw err
}
}