Fixing error reporting with empty output