Skip to content
This repository was archived by the owner on Jul 11, 2025. It is now read-only.

Commit 175e285

Browse files
Use more informative error message
Remove use of bare `error()`
1 parent 64776db commit 175e285

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ReefGuideAPI.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ function setup_regional_data(config::Dict)
9696
elseif occursin("flat", string(dp))
9797
flat_table = GeoParquet.read(parq_file)
9898
else
99-
error("Unknown lookup found: $(parq_file)")
99+
msg = "Unknown lookup found: $(parq_file). Must be 'slope' or 'flat'"
100+
throw(ArgumentError(msg))
100101
end
101102
end
102103
end

0 commit comments

Comments
 (0)