Skip to content

Commit

Permalink
Tweak error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
joa-quim committed Jan 16, 2025
1 parent 4f7d779 commit 8a98bfb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common_options.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2825,10 +2825,10 @@ end

# ---------------------------------------------------------------------------------------------------
function get_color(val)::String
# Parse a color input. Always return a string
# color1,color2[,color3,…] colorn can be a r/g/b triplet, a color name, or an HTML hexadecimal color (e.g. #aabbcc
# Parse a color input.
# color1,color2[,color3,…] colorn can be a r/g/b triplet, a color name, or an HTML hexadecimal color (e.g. #aabbcc)
(isa(val, AbstractString) || isa(val, Symbol) || isa(val, Real)) && return isa(val, Bool) ? "" : string(val)
error("\tGET_COLOR: got an unsupported data type")
error("\tGET_COLOR: got an unsupported data type: $(typeof(val))")
end
function get_color(val::Tuple)::String
out::String = ""
Expand Down

0 comments on commit 8a98bfb

Please sign in to comment.