More safe error reporting