# HG changeset patch # User jwe # Date 1200341562 0 # Node ID f350da7556003695370f457dfb18798aafe4cfc7 # Parent c51426c800458c6d857454beee0f8d1711374d9b [project @ 2008-01-14 20:12:42 by jwe] diff -r c51426c80045 -r f350da755600 src/graphics.cc --- a/src/graphics.cc Mon Jan 14 19:50:10 2008 +0000 +++ b/src/graphics.cc Mon Jan 14 20:12:42 2008 +0000 @@ -183,8 +183,11 @@ } } else - error ("trying to execute non-executable object (class = %s)", - cb.class_name ()); + { + std::string nm = cb.class_name (); + error ("trying to execute non-executable object (class = %s)", + nm.c_str ()); + } if (! error_state) feval (fcn, args);