fix: non-error was thrown

This commit is contained in:
José Oliveira 2021-03-03 19:25:39 +00:00 committed by Josh Harvey
parent 44cf7f6c41
commit 442e7cd8d9

View file

@ -65,7 +65,7 @@ function sendCoins (account, address, cryptoAtoms, cryptoCode) {
case 'failed':
throw new pRetry.AbortError(res[0].error)
case 'executing':
reject(res[0].error)
reject(new Error('operation still executing'))
break
}
})