fix bug: getGroups(user defined stop must implement interface "getGroup")

This commit is contained in:
judy0131 2018-10-08 14:10:41 +08:00
parent f2510a4285
commit f374264dac
2 changed files with 4 additions and 1 deletions

Binary file not shown.

View File

@ -106,7 +106,10 @@ object HTTPService extends DefaultJsonProtocol with Directives with SprayJsonSup
val stopGroups = API.getAllGroups() val stopGroups = API.getAllGroups()
Future.successful(HttpResponse(entity = stopGroups)) Future.successful(HttpResponse(entity = stopGroups))
}catch { }catch {
case _ => Future.successful(HttpResponse(entity = "Can not found stop properties Error!")) case ex => {
println(ex)
Future.successful(HttpResponse(entity = "Can not found stop properties Error!"))
}
} }
} }