File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
tray-util/src/main/scala/com/github/opengrabeso/loctio Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -176,6 +176,10 @@ object Start extends SimpleSwingApplication {
176
176
}(global)
177
177
178
178
requestNotifications(token)
179
+ }.tap {
180
+ _.failed.at(global).foreach { ex =>
181
+ println(s " Login failure $ex" )
182
+ }
179
183
}
180
184
} else {
181
185
Future .successful(())
@@ -235,7 +239,12 @@ object Start extends SimpleSwingApplication {
235
239
236
240
private def sendShutdown (): Future [Unit ] = {
237
241
println(" Send shutdown" )
238
- userApi.at(global).flatMap(_.shutdown(rest.UserRestAPI .RestString (" now" )))
242
+ userApi.at(global).flatMap(_.shutdown(rest.UserRestAPI .RestString (" now" ))).tap {
243
+ _.failed.at(global).foreach { ex =>
244
+ println(s " Shutdown: error $ex" )
245
+ ex.printStackTrace()
246
+ }
247
+ }
239
248
}
240
249
241
250
private def appExit () = {
You can’t perform that action at this time.
0 commit comments