Fixed small bug in error reporting code.