comparison src/graphics.cc @ 12483:7a5aacf65f81

Rewrite error strings in src/ to use variables named in documentation.
author Rik <octave@nomad.inbox5.com>
date Sat, 26 Feb 2011 17:28:11 -0800
parents 2f83974d5a6d
children 245b5efb07c2
comparison
equal deleted inserted replaced
12482:3244c6e0af4a 12483:7a5aacf65f81
7682 } 7682 }
7683 else 7683 else
7684 error ("drawnow: nothing to draw"); 7684 error ("drawnow: nothing to draw");
7685 } 7685 }
7686 else 7686 else
7687 error ("drawnow: invalid debug_file, expected a string value"); 7687 error ("drawnow: invalid DEBUG_FILE, expected a string value");
7688 } 7688 }
7689 else 7689 else
7690 error ("drawnow: invalid colormode, expected a boolean value"); 7690 error ("drawnow: invalid colormode MONO, expected a boolean value");
7691 } 7691 }
7692 else 7692 else
7693 error ("drawnow: invalid file, expected a string value"); 7693 error ("drawnow: invalid FILE, expected a string value");
7694 } 7694 }
7695 else 7695 else
7696 error ("drawnow: invalid terminal, expected a string value"); 7696 error ("drawnow: invalid terminal TERM, expected a string value");
7697 } 7697 }
7698 else 7698 else
7699 print_usage (); 7699 print_usage ();
7700 } 7700 }
7701 7701
7948 else 7948 else
7949 error ("addproperty: a `%s' property already exists in the graphics object", 7949 error ("addproperty: a `%s' property already exists in the graphics object",
7950 name.c_str ()); 7950 name.c_str ());
7951 } 7951 }
7952 else 7952 else
7953 error ("addproperty: invalid property type, expected a string value"); 7953 error ("addproperty: invalid property TYPE, expected a string value");
7954 } 7954 }
7955 else 7955 else
7956 error ("addproperty: invalid graphics object (= %g)", h); 7956 error ("addproperty: invalid graphics object (= %g)", h);
7957 } 7957 }
7958 else 7958 else
7959 error ("addproperty: invalid handle value"); 7959 error ("addproperty: invalid handle value");
7960 } 7960 }
7961 else 7961 else
7962 error ("addproperty: invalid property name, expected a string value"); 7962 error ("addproperty: invalid property NAME, expected a string value");
7963 } 7963 }
7964 else 7964 else
7965 print_usage (); 7965 print_usage ();
7966 7966
7967 return retval; 7967 return retval;