From ae6c1c0c663633cbd9cf4fe11a6d070b310c31f9 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Sat, 2 Sep 2017 23:19:29 +0200 Subject: [PATCH] make it even more descriptive --- src/args.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/args.jl b/src/args.jl index d582af9c..8faded96 100644 --- a/src/args.jl +++ b/src/args.jl @@ -1276,7 +1276,8 @@ end # ----------------------------------------------------------------------------- -has_black_border_for_default(st) = error("The seriestype attribute only accepts Symbols, you passed $st.") +has_black_border_for_default(st) = error("The seriestype attribute only accepts Symbols, you passed the $(typeof(st)) $st.") +has_black_border_for_default(st::Function) = error("The seriestype attribute only accepts Symbols, you passed the function $st.") function has_black_border_for_default(st::Symbol) like_histogram(st) || st in (:hexbin, :bar, :shape) end