From aac99b948e8c6bb977049bc4ce0b8847da466323 Mon Sep 17 00:00:00 2001 From: Fabian Emilius Date: Mon, 29 Jun 2020 14:55:53 +0200 Subject: [PATCH] Pass custom error messages (like assertion errors) --- src/ScatterUser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ScatterUser.ts b/src/ScatterUser.ts index 33a81d9..8f714dd 100644 --- a/src/ScatterUser.ts +++ b/src/ScatterUser.ts @@ -46,7 +46,7 @@ export class ScatterUser extends User { return this.returnEosjsTransaction(broadcast, completedTransaction) } catch (e) { throw new UALScatterError( - 'Unable to sign the given transaction', + e.message || 'Unable to sign the given transaction', UALErrorType.Signing, e) }