Commit 2986be26 authored by thomas.forbriger's avatar thomas.forbriger

csbackchk: add newline to stderr output

parent daeb5d48
......@@ -249,25 +249,25 @@ def main(argv=None):
logger.getLogger().error("{0}".format(err))
sys.stderr.write(str(err))
logger.getLogger().error(abortmessage)
sys.stderr.write(abortmessage)
sys.stderr.write(abortmessage+"\n")
return err.errorCode
except Error as err:
logger.getLogger().error("message: %s [CODE %s]", err.msg, err.errorCode)
sys.stderr.write(str(err))
logger.getLogger().error(abortmessage)
sys.stderr.write(abortmessage)
sys.stderr.write(abortmessage+"\n")
return err.errorCode
except csfile.CsFileError as err:
logger.getLogger().error("message: %s [CODE %s]", err.msg, err.errorCode)
sys.stderr.write(str(err))
logger.getLogger().error(abortmessage)
sys.stderr.write(abortmessage)
sys.stderr.write(abortmessage+"\n")
return err.errorCode
except:
logger.getLogger().error("unknown execption!")
sys.stderr.write("unknown execption!")
logger.getLogger().error(abortmessage)
sys.stderr.write(abortmessage)
sys.stderr.write(abortmessage+"\n")
return 999
else:
logger.getLogger().info("Checks performed.")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment