thebrowsercompany / swift-webdriver

A Swift library for communicating with WebDriver (Appium/WinAppDriver) endpoints
BSD 3-Clause "New" or "Revised" License
105 stars 3 forks source link

We should not crash when receiving an unknown error status code #49

Closed tristanlabelle closed 1 year ago

tristanlabelle commented 1 year ago

The Status enum cannot be decoded with values that it does not explicitly list, resulting in a crash. We should have a representation that allows for reporting unknown error codes, too.

jeffdav commented 1 year ago

PR https://github.com/thebrowsercompany/webdriver-swift/pull/54, change https://github.com/thebrowsercompany/webdriver-swift/pull/54/commits/2ec228eecd8ffc5c046d39c4f636011fa5ec61e9