Skip to content

Commit

Permalink
wrap string in error
Browse files Browse the repository at this point in the history
  • Loading branch information
pablof7z committed Aug 1, 2024
1 parent 9fb7f50 commit ab187ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ndk/src/zapper/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,8 @@ class NDKZapper extends EventEmitter<{
}
}
} catch (e: any) {
retVal = e;
if (e instanceof Error) retVal = e
else retVal = new Error(e)
d("Error zapping to %s with %d %s using %s: %o", split.pubkey, split.amount, this.unit, zapMethod.type, e);
}
}
Expand Down

0 comments on commit ab187ba

Please sign in to comment.