fix error reporting from c3