From d4e4e514fea0bb701fea1b09d731df665060dbea Mon Sep 17 00:00:00 2001 From: Elias Carvalho Date: Mon, 29 Jul 2024 15:27:51 -0300 Subject: [PATCH] Apply suggestions --- src/GADM.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GADM.jl b/src/GADM.jl index 3149c92..f1af25f 100644 --- a/src/GADM.jl +++ b/src/GADM.jl @@ -83,7 +83,7 @@ function download(country; version="4.1") if e isa HTTP.StatusError && e.status == 404 throw(ArgumentError("country code \"$country\" not found, please provide a standard ISO 3 country code")) else - rethrow() + throw(ErrorException("download failed due to internet and/or server issues")) end end end