Skip to content

Commit 3d097e4

Browse files
committed
warn
1 parent 3b81be5 commit 3d097e4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/commands/check_command.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@ export async function runCheckCommand(args: CheckCommand) {
2121
}
2222

2323
async function getOriginalSourceHash() {
24+
const filePath = args.outDir.join(output.bindingJsBg.path.basename());
2425
try {
2526
return getSourceHashFromText(
26-
await args.outDir.join(`${output.bindingJsBg.path.basename()}`)
27-
.readText(),
27+
await filePath.readText(),
2828
);
2929
} catch (err) {
3030
if (err instanceof Deno.errors.NotFound) {
31+
console.warn(`${colors.yellow("Warning")} could not find ${filePath}`);
3132
return undefined;
3233
} else {
3334
throw err;

0 commit comments

Comments
 (0)