Skip to content

Commit

Permalink
Typo in the README directory for ECCO errors (#343)
Browse files Browse the repository at this point in the history
* Changed the ECCO Password/Username error to have the correct directory for the README

* Made a mistake in the file path -- fixed now
  • Loading branch information
taimoorsohail authored Feb 20, 2025
1 parent 220572d commit 459d76d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ docs/src/literated/
*.nsys-rep
*.ncu-rep
*.sq
*.sqlite
*.sqlite
6 changes: 3 additions & 3 deletions src/DataWrangling/ECCO/ECCO_metadata.jl
Original file line number Diff line number Diff line change
Expand Up @@ -250,15 +250,15 @@ function download_dataset(metadata::ECCOMetadata; url = urls(metadata))
filepath = metadata_path(metadatum)

if !isfile(filepath)
instructions_msg = "\n See ClimaOcean.jl/src/ECCO/README.md for instructions."
instructions_msg = "\n See ClimaOcean.jl/src/DataWrangling/ECCO/README.md for instructions."
if isnothing(username)
msg = "Could not find the ECCO_PASSWORD environment variable. \
See ClimaOcean.jl/src/ECCO/README.md for instructions on obtaining \
See ClimaOcean.jl/src/DataWrangling/ECCO/README.md for instructions on obtaining \
and setting your ECCO_USERNAME and ECCO_PASSWORD." * instructions_msg
throw(ArgumentError(msg))
elseif isnothing(password)
msg = "Could not find the ECCO_PASSWORD environment variable. \
See ClimaOcean.jl/src/ECCO/README.md for instructions on obtaining \
See ClimaOcean.jl/src/DataWrangling/ECCO/README.md for instructions on obtaining \
and setting your ECCO_USERNAME and ECCO_PASSWORD." * instructions_msg
throw(ArgumentError(msg))
end
Expand Down

0 comments on commit 459d76d

Please # to comment.