Adjust logging and error handling in the client

* HTTP responses in the error range (400+) now properly turn into errors
* ROJO_EPIPHANY_DEV_CREATE now creates more verbose configuration
* Default configuration values are now much more explicit
* Errors that cause session termination are labeled more clearly.
This commit is contained in:
Lucien Greathouse
2019-01-21 10:57:03 -08:00
parent 614f886008
commit fecb11cba4
5 changed files with 46 additions and 20 deletions

View File

@@ -95,8 +95,7 @@ function App:render()
address = address,
port = port,
onError = function(message)
Logging.warn("%s", tostring(message))
Logging.trace("Session terminated due to error")
Logging.warn("Rojo session terminated because of an error:\n%s", tostring(message))
self.currentSession = nil
self:setState({