console: do not add a dot at the end of the error message if it already exists