mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-12-03 03:38:08 +08:00
fix: show exception message when sandbox execution fails (#4663)
This commit is contained in:
parent
27dae156db
commit
140dd873f1
@ -99,7 +99,9 @@ class CodeExecutor:
|
||||
except CodeExecutionException as e:
|
||||
raise e
|
||||
except Exception as e:
|
||||
raise CodeExecutionException('Failed to execute code, this is likely a network issue, please check if the sandbox service is running')
|
||||
raise CodeExecutionException('Failed to execute code, which is likely a network issue,'
|
||||
' please check if the sandbox service is running.'
|
||||
f' ( Error: {str(e)} )')
|
||||
|
||||
try:
|
||||
response = response.json()
|
||||
|
Loading…
Reference in New Issue
Block a user