Commit 93217cef authored by Kim F. Storm's avatar Kim F. Storm
Browse files

(x_decode_color): Use signal_error.

parent 8009eb44
......@@ -759,9 +759,7 @@ x_decode_color (f, color_name, mono_color)
if (x_defined_color (f, SDATA (color_name), &cdef, 1))
return cdef.pixel;
Fsignal (Qerror, Fcons (build_string ("Undefined color"),
Fcons (color_name, Qnil)));
return 0;
signal_error ("Undefined color", color_name);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment