# HG changeset patch
# User Pantxo Diribarne <pantxo.diribarne@gmail.com>
# Date 1358110622 -3600
# Node ID 2e7bcb8a7e7d4ee7bc8e3fb143969f79936216d8
# Parent  cb47c8cc105d62753e76703125060f271638fd91
struct2hdl: send error when the requested object type is not implemented.

diff -r cb47c8cc105d -r 2e7bcb8a7e7d scripts/plot/struct2hdl.m
--- a/scripts/plot/struct2hdl.m	Sun Jan 13 11:29:50 2013 -0800
+++ b/scripts/plot/struct2hdl.m	Sun Jan 13 21:57:02 2013 +0100
@@ -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
