Added correct error output