Fix error messages when no output