mirror of
https://github.com/enso-org/enso.git
synced 2024-12-24 02:23:28 +03:00
Fix execution error message (#3702)
This commit is contained in:
parent
b304402d8e
commit
77bcb87f7c
@ -243,11 +243,12 @@ object ProgramExecutionSupport {
|
||||
case ExecutionItem.CallData(_, call) => call.getFunction.getName
|
||||
}
|
||||
val executionUpdate = getExecutionOutcome(error)
|
||||
val reason = Option(error.getMessage).getOrElse(error.getClass.toString)
|
||||
val message = error match {
|
||||
case _: ThreadInterruptedException =>
|
||||
s"Execution of function $itemName interrupted."
|
||||
case _ =>
|
||||
s"Execution of function $itemName failed. ${error.getMessage}"
|
||||
s"Execution of function $itemName failed ($reason)."
|
||||
}
|
||||
ctx.executionService.getLogger.log(Level.WARNING, message)
|
||||
executionUpdate.getOrElse(Api.ExecutionResult.Failure(message, None))
|
||||
|
Loading…
Reference in New Issue
Block a user