You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve error message for undownloadable artifacts
This commit adds a message to the already existing error message that
the artifact may be undownloadable and suggests to manually download
the artifact and adds the artifact to Overrides.toml if this is the case.
msg ="\nThe artifact may also be too large to be downloaded automatically. If this is the case, download the artifact directly and indicate where the artifact lives in Overrides.toml (see ClimaArtifacts documentation for how to do this)."
msg ="\nThe artifact may also be too large to be downloaded automatically. If this is the case, download the artifact directly and indicate where the artifact lives in Overrides.toml (see ClimaArtifacts documentation for how to do this)."
165
+
new_err =ErrorException(e.msg * msg)
166
+
rethrow(new_err)
167
+
else
168
+
rethrow(e)
169
+
end
138
170
end
139
-
push!(ACCESSED_ARTIFACTS, artifact_name)
140
-
Base.invokelatest(
141
-
JuliaArtifacts._artifact_str,
142
-
$(__module__),
143
-
$(artifacts_toml),
144
-
$(artifact_name),
145
-
$(artifact_path_tail),
146
-
$(artifact_dict),
147
-
$(hash),
148
-
$(platform),
149
-
LazyArtifacts,
150
-
)::String
151
171
end
152
172
else
153
173
# If artifact_name is not a string (e.g., it is a variable), we have to do all the
msg ="\nThe artifact may also be too large to be downloaded automatically. If this is the case, download the artifact directly and indicate where the artifact lives in Overrides.toml (see ClimaArtifacts documentation for how to do this)."
msg ="\nThe artifact may also be too large to be downloaded automatically. If this is the case, download the artifact directly and indicate where the artifact lives in Overrides.toml (see ClimaArtifacts documentation for how to do this)."
0 commit comments