Skip to content

Commit

Permalink
chore: Optimize the situation when code is null
Browse files Browse the repository at this point in the history
  • Loading branch information
ErKeLost committed May 26, 2024
1 parent 7a1cfba commit 4343d29
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/shiny-knives-accept.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'farmup': patch
---

Optimize the situation when code is null
2 changes: 1 addition & 1 deletion src/config/constant.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Logger } from "@farmfe/core";

export const CLI_NAME = 'farmup';
export const CLI_NAME = 'Farmup';

export const logger = new Logger({
name: CLI_NAME,
Expand Down
2 changes: 1 addition & 1 deletion src/core/executer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class Executer {
process.on('exit', this.closeChild);

child.on('exit', (code) => {
this.logger.info(`"${name}" PID ${child.pid} ${code === 0 ? 'done' : `exit ${code}`}`);
code && this.logger.info(`"${name}" PID ${child.pid} ${code === 0 ? 'done' : `exit ${code}`}`);
this.child = undefined;
});
}
Expand Down

0 comments on commit 4343d29

Please sign in to comment.