fix: fail plugin update on update errors

This commit is contained in:
Peter Steinberger
2026-04-26 11:00:56 +01:00
parent 861cd026d1
commit 93f2d42259
2 changed files with 106 additions and 0 deletions

View File

@@ -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);
}
}