fix: reduce global eslint warnings (#216)
This commit is contained in:
@@ -211,6 +211,7 @@ function parseLastAgentSeqState(
|
||||
`Invalid last_agent_seq JSON for ${serviceId}: ${
|
||||
err instanceof Error ? err.message : String(err)
|
||||
}`,
|
||||
{ cause: err },
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -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], {
|
||||
|
||||
@@ -507,11 +507,13 @@ export function ensureWorkspaceDependenciesInstalled(
|
||||
const retryDetail = getInstallErrorDetail(retryError);
|
||||
throw new Error(
|
||||
`Failed to install workspace dependencies with "${command.commandText}" in ${repoDir} after cleaning node_modules: ${retryDetail}`,
|
||||
{ cause: retryError },
|
||||
);
|
||||
}
|
||||
} else {
|
||||
throw new Error(
|
||||
`Failed to install workspace dependencies with "${command.commandText}" in ${repoDir}: ${detail}`,
|
||||
{ cause: error },
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user