[Gridflow-cvs] [svn] commit: r6455 - /trunk/src/gem.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Wed Dec 8 10:03:28 EST 2010


Author: matju
Date: Wed Dec  8 10:03:28 2010
New Revision: 6455

Log:
better error message

Modified:
    trunk/src/gem.cxx

Modified: trunk/src/gem.cxx
==============================================================================
--- trunk/src/gem.cxx (original)
+++ trunk/src/gem.cxx Wed Dec  8 10:03:28 2010
@@ -128,7 +128,7 @@
 //#define NTIMES(FOO) for (; N>=4; N-=4) {FOO FOO FOO FOO} for (; N; N--) {FOO}
 
 GRID_INLET(1) {
-	if (in.dim.n != 3) RAISE("expecting 3 dimensions: rows,columns,channels");
+	if (in.dim.n != 3) RAISE("expecting 3 dimensions: rows,columns,channels, got %s",in.dim.to_s());
 	int c = in.dim[2];
 	if (c!=3 && c!=4)  RAISE("expecting 3 or 4 channels (got %d)",in.dim[2]);
 	in.set_chunk(1);



More information about the Gridflow-cvs mailing list