Skip to content

Commit

Permalink
逆だった
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshiba committed Nov 7, 2024
1 parent 02e758a commit 687212c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/backend/electron/manager/engineInfoManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,10 @@ export class EngineInfoManager {
JSON.parse(fs.readFileSync(manifestPath, { encoding: "utf8" })),
);
} catch (e) {
if (e instanceof Error) {
return failure("manifestParseError", e);
} else {
throw new UnreachableError();
}
return failure(
"manifestParseError",
e instanceof Error ? e : new Error("manifest parse error"),
);
}

const [command, ...args] = shlex.split(manifest.command);
Expand Down

0 comments on commit 687212c

Please sign in to comment.