ably-js icon indicating copy to clipboard operation
ably-js copied to clipboard

Most ErrorInfos are created with numeric literals

Open owenpearson opened this issue 2 years ago • 1 comments

These will be a lot more expressive if we create an enum with appropriate names for error codes.

┆Issue is synchronized with this Jira Task by Unito

owenpearson avatar Oct 12 '21 11:10 owenpearson

as far as i understand, error codes are loaded from protocol definitions already in

https://github.com/ably/ably-common/blob/ca89c9d8d5f2cdef40546cbc704b4e5052c94b06/protocol/errors.json

So, does this task is to make ErrorInfo function https://github.com/ably/ably-js/blob/d0d0bca390254e8f28a4c4b98f08ccf79aafdf86/common/lib/types/errorinfo.js#L3 provide text output of error code description from protocols definition file?

vodolaz095 avatar Oct 15 '21 11:10 vodolaz095