Bug fix

Previous commit had a but that would output the wrong error (partial) error message, then send an unwanted string down the Output stream.