changeset 71993:3f1637b3adcb

(x_decode_color): Use signal_error.
author Kim F. Storm <storm@cua.dk>
date Tue, 18 Jul 2006 13:30:13 +0000
parents 760807463226
children e650d66ac6db
files src/xfns.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/xfns.c	Tue Jul 18 13:30:04 2006 +0000
+++ b/src/xfns.c	Tue Jul 18 13:30:13 2006 +0000
@@ -759,9 +759,7 @@
   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);
 }