Actually, I think the "\n" is still necessary here. You have a "echo -n" before, so you need a new line before outputting an error.