We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e1a992 commit 2a16a68Copy full SHA for 2a16a68
1 file changed
src-tauri/src/execution.rs
@@ -146,17 +146,10 @@ pub async fn execute_code(
146
);
147
148
error!("执行代码 -> 调用插件 [ {} ] 失败: {}", request.language, e);
149
- return Ok(ExecutionResult {
150
- success: false,
151
- stdout: String::new(),
152
- stderr: format!(
153
- "{} interpreter not found. Please install {} and ensure it's in your PATH.\n\nError: {}",
154
- request.language, request.language, e
155
- ),
156
- execution_time,
157
- timestamp,
158
- language: request.language,
159
- });
+ return Err(format!(
+ "{} interpreter not found. Please install {} and ensure it's in your PATH.\n\nError: {}",
+ request.language, request.language, e
+ ));
160
}
161
};
162
0 commit comments