diff scripts/plot/struct2hdl.m @ 15941:8135bce0812a

struct2hdl.m: send error when the requested object type is not implemented. * scripts/plot/struct2hdl.m: send error when the requested object type is not implemented.
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Sun, 13 Jan 2013 21:57:02 +0100
parents d0579fed7e22
children e39f00a32dc7
line wrap: on
line diff
--- a/scripts/plot/struct2hdl.m
+++ b/scripts/plot/struct2hdl.m
@@ -148,6 +148,8 @@
     h = createsurface (s, par);
   elseif (strcmp (s.type, "hggroup"))
     [h, s, p] = createhg (s, p, par, hilev);
+  else
+    error ("struct2hdl: %s objects are not implemented yet", s.type)
   endif
 
   ## children