Skip to content

Commit

Permalink
fix: head can throw "NotFound"
Browse files Browse the repository at this point in the history
  • Loading branch information
blacha committed Nov 6, 2023
1 parent 786e4e9 commit a63b87f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/cli/src/cli/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export async function getHash(Bucket: string, Key: string): Promise<string | nul
return obj.Metadata?.[HashKey] ?? null;
} catch (e: any) {
if (e.code === 'NoSuchKey') return null;
if (e.code === 'NotFound') return null;
throw e;
}
}
Expand Down

0 comments on commit a63b87f

Please sign in to comment.