@fastgpt-sdk/sandbox-adapter 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -843,6 +843,10 @@ class SealosDevboxAdapter extends BaseSandboxAdapter {
|
|
|
843
843
|
command: cmd,
|
|
844
844
|
timeoutSeconds: options?.timeoutMs ? Math.ceil(options.timeoutMs / 1000) : undefined
|
|
845
845
|
});
|
|
846
|
+
if (!res.data) {
|
|
847
|
+
console.log(res);
|
|
848
|
+
throw new CommandExecutionError(`Command execution failed: ${command}`, command);
|
|
849
|
+
}
|
|
846
850
|
return {
|
|
847
851
|
stdout: res.data.stdout,
|
|
848
852
|
stderr: res.data.stderr,
|
package/package.json
CHANGED