Skip to content

Commit

Permalink
fix: updated error message for deploying with bad auth key to be more…
Browse files Browse the repository at this point in the history
… precise

Co-authored-by: Ben Hancock <benhancock859@gmail.com>
  • Loading branch information
dylanspyer and benhancock committed Oct 18, 2024
1 parent abd9eac commit c1556bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/get-site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const getSiteByName = async (api, siteName) => {
// @ts-expect-error TS(2571) FIXME: Object is of type 'unknown'.
if (error_.status === 401) {
// @ts-expect-error TS(2571) FIXME: Object is of type 'unknown'.
error(error_.message)
error(`${error_.message}: could not retrieve site`)
} else {
error('Site not found. Please rerun "netlify link"')
}
Expand Down

0 comments on commit c1556bd

Please sign in to comment.