# HG changeset patch # User Michael Pavone # Date 1426829958 25200 # Node ID df4b67d8d2bc9504eb867310d155d7698f61035b # Parent f987bb2a1911bf08a523732de366a49dc5c000a5 Minor improvement to error message about invalid c type expressions diff -r f987bb2a1911 -r df4b67d8d2bc cbackend.js --- 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) {