@supacloud/admin 0.7.3 → 0.7.4
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 +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -26535,7 +26535,7 @@ ${upgradeExecution.stdout.slice(-300)}${edgeBoundary}`;
|
|
|
26535
26535
|
const command = assertSafeExecCommand(args.command);
|
|
26536
26536
|
const r = await ssh.exec(command, getExecTimeoutMs(args.timeout_seconds));
|
|
26537
26537
|
if (!r.success) {
|
|
26538
|
-
const diagnostic =
|
|
26538
|
+
const diagnostic = r.stderr.trim() || r.stdout.trim() || "no remote diagnostic";
|
|
26539
26539
|
throw new Error(`Remote diagnostic command failed (exit ${r.code}): ${diagnostic.slice(-500)}`);
|
|
26540
26540
|
}
|
|
26541
26541
|
text = `exit: ${r.code}
|