Skip to content

Commit

Permalink
Bumped version to fix homebrew packaging issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bendews committed Oct 14, 2024
1 parent d1a3240 commit e42669a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 27 deletions.
13 changes: 8 additions & 5 deletions src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,13 @@ try {
.command("otp", otp)
.command("start", daemon)
.parse(Deno.args);
} catch (error) {
const status = error.code ? error.code : Status.GENERIC_ERROR;
console.log(
JSON.stringify({ error: error.message, status, results: [] }),
);
} catch (error: unknown) {
let status = Status.GENERIC_ERROR;
let msg = "Unknown Error";
if (error instanceof APWError || error instanceof Error) {
status = error instanceof APWError ? error.code : status;
msg = error.message;
}
console.error(JSON.stringify({ error: msg, status, results: [] }));
Deno.exit(status);
}
2 changes: 1 addition & 1 deletion src/const.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export const DATA_PATH = `${Deno.env.get("HOME")}/.apw`;

export const VERSION = "1.0.0";
export const VERSION = "1.0.1";

export class APWError extends Error {
code: Status;
Expand Down
21 changes: 0 additions & 21 deletions tsconfig.json

This file was deleted.

0 comments on commit e42669a

Please sign in to comment.