diff --git a/src/raw-transactions.js b/src/raw-transactions.js index 16bc593..675f0af 100644 --- a/src/raw-transactions.js +++ b/src/raw-transactions.js @@ -121,6 +121,7 @@ class RawTransactions { throw new Error('Input must be a string or array of strings.') } catch (error) { if (error.response && error.response.data) throw error.response.data + if (error.error) throw new Error(error.error) else throw error } } @@ -186,6 +187,7 @@ class RawTransactions { throw new Error('Input must be a string or array of strings.') } catch (error) { if (error.response && error.response.data) throw error.response.data + if (error.error) throw new Error(error.error) else throw error } } @@ -282,6 +284,7 @@ class RawTransactions { throw new Error('Input must be a string or array of strings.') } catch (error) { if (error.response && error.response.data) throw error.response.data + if (error.error) throw new Error(error.error) else throw error } } @@ -327,6 +330,7 @@ class RawTransactions { return retArray } catch (error) { if (error.response && error.response.data) throw error.response.data + if (error.error) throw new Error(error.error) else throw error } } @@ -380,6 +384,7 @@ class RawTransactions { return txDetails } catch (error) { if (error.response && error.response.data) throw error.response.data + if (error.error) throw new Error(error.error) else throw error } } @@ -453,6 +458,7 @@ class RawTransactions { throw new Error('Input hex must be a string or array of strings.') } catch (error) { if (error.response && error.response.data) throw error.response.data + if (error.error) throw new Error(error.error) else throw error } }