Skip to content

Commit

Permalink
fix: normalization errors
Browse files Browse the repository at this point in the history
  • Loading branch information
markthree committed Jul 9, 2023
1 parent a26b88a commit d668f38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export async function getFolderSizeBin(
});

if (stderr) {
throw stderr;
throw new Error(stderr)
}

if (pretty) {
Expand Down Expand Up @@ -145,7 +145,7 @@ export function createGetFolderSizeBinIpc(
go.stderr.on("data", (item: Buffer) => {
const [base, ...error] = String(item).split(",");
const { reject } = tasks.get(base);
reject(error.toString());
reject(new Error(error.toString()));
tasks.delete(base);
});

Expand Down

0 comments on commit d668f38

Please sign in to comment.