Skip to content

Commit

Permalink
Change error message to be more specific for non-existent README (Clo…
Browse files Browse the repository at this point in the history
…ses Issue EvitanRelta#101)
  • Loading branch information
swxk19 committed Jul 6, 2022
1 parent e14880b commit 049d741
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export const ImportGHRepo = ({ setAnchor, menuOpen }: Props) => {
setShowError(true)
if (!staticAxios.isAxiosError(e)) return setErrorMessage((e as Error).message)
if (e.response?.status === 404)
return setErrorMessage("Repo doesn't exist, or you don't have access to it.")
return setErrorMessage("README.md doesn't exist, or you don't have access to it.")
return setErrorMessage(e.message)
}
setShowLoading(false)
Expand Down

0 comments on commit 049d741

Please sign in to comment.