Fixing error reporting mechanism for CI envs