Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

String used as context object causes: Cannot create property 'errormessage' on string #23

Open
kornelski opened this issue Oct 30, 2015 · 0 comments
Assignees
Labels
feature New feature request

Comments

@kornelski
Copy link
Contributor

When report() gets a string as the context object:

Cannot create property 'errormessage' on string

It'd be nice if o-errors supported any data type for the context and automatically wrapped in an object if necessary.

IMHO high tolerance for bad input is needed in o-errors, because error-handling code paths are rarely tested, and an error during error handling prevents any error being reported at all, which is quite undesirable.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature request
Projects
None yet
Development

No branches or pull requests

3 participants