Skip to content

Commit

Permalink
ocd
Browse files Browse the repository at this point in the history
  • Loading branch information
toebeann committed Aug 20, 2024
1 parent 801fadd commit bb56d21
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ async function* getFilePaths(dir: string): AsyncGenerator<string> {
}
}

const handleReleaseError = (error: unknown, repo: Repo) => {
const handleReleaseError = (error: unknown, { owner, repo }: Repo) => {
// an error occured while attempting to get the latest release
const parsed = httpErrorSchema.safeParse(error);
if (parsed.success) {
Expand All @@ -138,13 +138,13 @@ const handleReleaseError = (error: unknown, repo: Repo) => {
: "Could not retrieve releases";

return [
`${message} for repo: /${repo.owner}/${repo.repo}`,
`${message} for repo: /${owner}/${repo}`,
parsed.data.status,
parsed.data.message,
].join(" ");
} else {
return [
`Could not retrieve releases for repo: /${repo.owner}/${repo.repo}`,
`Could not retrieve releases for repo: /${owner}/${repo}`,
inspect(error, { colors: true }),
].join(EOL);
}
Expand Down

0 comments on commit bb56d21

Please sign in to comment.