hirosystems / stacks.js

JavaScript libraries for identity, auth, storage and transactions on the Stacks blockchain.
https://stacks.js.org
MIT License
944 stars 307 forks source link

fix empty error string #1627

Open janniks opened 5 months ago

janniks commented 5 months ago
const msg = await response.text().catch(() => '');

Often shows an empty string in error logs, we should change this to show a different message on empty message.

Ref: https://github.com/hirosystems/stacks.js/pull/1623#discussion_r1481593360