TS - Message.unpack fails with silent SIGBUS error
What
Have friendly errors when a method can receive all types, DO NOT crash with a SIGBUS error. Sending inn a JSON obj into unpack, which is allowed by the types, crashes silently with a SIGBUS error. Trying to debug this was not that easy: https://github.com/nodejs/help/issues/3168
But the library should throw a friendly error if JSON objects are not possible to send in for unpack. Only string works at the moment
Why
This needs to be fixed for a better DX, as SIGBUS is not caught by try catch, and it can fail silently depending on how one run its code. This is a very bad DX.
Success Criteria
Fail if one send in something the unpack method dont expect. Fail with a proper error so the developer can understand. Or if JSON objects are OK, which they should be, dont crash unexpectadly.