|
@@ -143,7 +143,7 @@ class RestApiWorker(appContext: Context, workerParams: WorkerParameters) :
|
|
catch (illegalArgumentException : java.lang.IllegalArgumentException){
|
|
catch (illegalArgumentException : java.lang.IllegalArgumentException){
|
|
Log.i(logTag, illegalArgumentException.stackTraceToString())
|
|
Log.i(logTag, illegalArgumentException.stackTraceToString())
|
|
call.respondText(
|
|
call.respondText(
|
|
- illegalArgumentException.stackTraceToString(),
|
|
|
|
|
|
+ illegalArgumentException.toString(),
|
|
status = HttpStatusCode.BadRequest
|
|
status = HttpStatusCode.BadRequest
|
|
)
|
|
)
|
|
return@post
|
|
return@post
|
|
@@ -151,7 +151,7 @@ class RestApiWorker(appContext: Context, workerParams: WorkerParameters) :
|
|
catch (exception: java.lang.Exception) {
|
|
catch (exception: java.lang.Exception) {
|
|
Log.i(logTag, exception.stackTraceToString())
|
|
Log.i(logTag, exception.stackTraceToString())
|
|
call.respondText(
|
|
call.respondText(
|
|
- exception.stackTraceToString(),
|
|
|
|
|
|
+ exception.toString(),
|
|
status = HttpStatusCode.InternalServerError
|
|
status = HttpStatusCode.InternalServerError
|
|
)
|
|
)
|
|
return@post
|
|
return@post
|
|
@@ -179,7 +179,7 @@ class RestApiWorker(appContext: Context, workerParams: WorkerParameters) :
|
|
} catch (e: Exception) {
|
|
} catch (e: Exception) {
|
|
Log.w(logTag, e.stackTraceToString())
|
|
Log.w(logTag, e.stackTraceToString())
|
|
call.respondText(
|
|
call.respondText(
|
|
- e.stackTraceToString(),
|
|
|
|
|
|
+ e.toString(),
|
|
status = HttpStatusCode.InternalServerError
|
|
status = HttpStatusCode.InternalServerError
|
|
)
|
|
)
|
|
return@get
|
|
return@get
|
|
@@ -205,7 +205,7 @@ class RestApiWorker(appContext: Context, workerParams: WorkerParameters) :
|
|
} catch (e: Exception) {
|
|
} catch (e: Exception) {
|
|
Log.w(logTag, e.stackTraceToString())
|
|
Log.w(logTag, e.stackTraceToString())
|
|
call.respondText(
|
|
call.respondText(
|
|
- e.stackTraceToString(),
|
|
|
|
|
|
+ e.toString(),
|
|
status = HttpStatusCode.InternalServerError
|
|
status = HttpStatusCode.InternalServerError
|
|
)
|
|
)
|
|
return@get
|
|
return@get
|