fix several bogus var refs in error reporting
1 file changed