refactor: stack

This commit is contained in:
cha0s 2021-01-17 21:08:10 -06:00
parent a0b506ccf4
commit 629f410a10

View File

@ -97,7 +97,7 @@ const Decoder = (latus) => class Decoder extends decorate(class {}) {
});
}
catch (error) {
const next = new Error(`Couldn't unpack ${Packet.type}(${view}): ${error.message}`);
const next = new Error(`Couldn't unpack ${Packet.type}(${view}): ${error.stack}`);
// eslint-disable-next-line no-console
console.error(next);
throw next;