eris: Errors don't have .code or .message
9 days ago, abal made a commit that cleaned up REST errors. I tried to use .code
on the error, but it was undefined
. I can still see the .res
and .req
properties, which means that the commit didn’t work as expected. I then enabled restMode on the client and tried again, and same issue arised. Is it something I’m doing wrong? By the way, it’s commit c29bbcf8dbe185535cb6efc37b2c599fa0e8cab0.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 18 (7 by maintainers)
Commits related to this issue
- Remote Update (interactions, pr #342): upstream/dev — committed to ErisPRUpdateBot/eris by ErisPRUpdateBot 2 years ago
Aaaaaaa!!! I found the issue! It turns out there was another
node_modules
folder another subdirectory down that had an older Eris version installed, and Node.js was using that instead. So basically there was this style of folders: