[wip] use object instead of object of CatchableError for LeopardError

workaround for edge case encountered in context of nimbus-build-system project
This commit is contained in:
Michael Bradley, Jr 2022-03-18 11:01:01 -05:00
parent 5ca98b49fe
commit 04d92d5c85
No known key found for this signature in database
GPG Key ID: 9FCA591DA4CE7D0D

View File

@ -47,8 +47,15 @@ type
LeopardNeedMoreData = wrapper.LeopardNeedMoreData
LeopardSuccess = wrapper.LeopardSuccess
LeopardError* = object of CatchableError
# Regardless of comment above, if LeopardError is `object of CatchableError`
# there seems to be a weird edge case, possibly owing to the LeopardResult
# enum starting with a negative number, whereby there is a compile-time error
# on Linux and Windows (but not macOS) re: stew/results in the context of a
# nimbus-build-system project; that error is not encountered in a
# choosenim/nimble setup using Nim 1.2, 1.4, or 1.6.
LeopardError* = object # of CatchableError
code*: LeopardResult
msg*: string
ParityData* = Data