You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The type in webdriverjs, callback function used in analyze needs to be of type Error | null instead of string | null as when used in CLI, we are unable to properly handle the error as it is of type string and not Error therefore we do not have access to Error's functions i.e. e.message or e.stack. Example is when a user uses flag --include and provided an invalid / non-existent CSS selector when --show-errors is provided to get why it has failed we are presented with undefined
The text was updated successfully, but these errors were encountered:
For reference: #421
The type in webdriverjs, callback function used in analyze needs to be of type
Error | null
instead ofstring | null
as when used in CLI, we are unable to properly handle the error as it is of type string and not Error therefore we do not have access to Error's functions i.e.e.message or e.stack
. Example is when a user uses flag--include
and provided an invalid / non-existent CSS selector when--show-errors
is provided to get why it has failed we are presented withundefined
The text was updated successfully, but these errors were encountered: