diff cbackend.js @ 316:df4b67d8d2bc

Minor improvement to error message about invalid c type expressions
author Michael Pavone <pavone@retrodev.com>
date Thu, 19 Mar 2015 22:39:18 -0700
parents d1dc2d70bdfd
children 1debeb21dd47
line wrap: on
line diff
--- a/cbackend.js	Sat Mar 14 12:10:51 2015 -0700
+++ b/cbackend.js	Thu Mar 19 22:39:18 2015 -0700
@@ -317,7 +317,7 @@
 		return [rettype.toCTypeName() + '(*', ')(' + argtypes + ')'];
 		break;
 	default:
-		throw new Error('invalid use of funcall expression where a C type name is expected');
+		throw new Error('invalid use of funcall expression where a C type name is expected: ' + this.name);
 	}
 };
 funcall.prototype.toCLines = function(vars, needsreturn) {