make seriestype error more descriptive

This commit is contained in:
Daniel Schwabeneder 2017-09-02 22:58:26 +02:00
parent 184404beac
commit b3f5939689

View File

@ -1276,6 +1276,7 @@ end
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
has_black_border_for_default(st) = error("The seriestype attribute only accepts Symbols, you passed $st.")
function has_black_border_for_default(st::Symbol) function has_black_border_for_default(st::Symbol)
like_histogram(st) || st in (:hexbin, :bar, :shape) like_histogram(st) || st in (:hexbin, :bar, :shape)
end end