fix: reduce global eslint warnings (#216)

This commit is contained in:
Eyejoker
2026-06-03 08:30:21 +08:00
committed by GitHub
parent 63a4515241
commit 22602da1ec
7 changed files with 11 additions and 7 deletions

View File

@@ -315,7 +315,9 @@ function restartEjclawStackServices(): string[] {
throw error;
}
if (process.env.SERVICE_ID) {
throw new Error(MANAGED_SERVICE_CALLER_FALLBACK_MESSAGE);
throw new Error(MANAGED_SERVICE_CALLER_FALLBACK_MESSAGE, {
cause: error,
});
}
execFileSync('systemctl', [...systemctlArgs, 'restart', ...services], {