Fix error output if no connection