mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 05:10:41 +00:00
fix: fail plugin update on update errors
This commit is contained in:
@@ -146,4 +146,11 @@ export async function runPluginUpdateCommand(params: {
|
||||
}
|
||||
defaultRuntime.log("Restart the gateway to load plugins and hooks.");
|
||||
}
|
||||
|
||||
if (
|
||||
pluginResult.outcomes.some((outcome) => outcome.status === "error") ||
|
||||
hookResult.outcomes.some((outcome) => outcome.status === "error")
|
||||
) {
|
||||
defaultRuntime.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user