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): ...@@ -249,25 +249,25 @@ def main(argv=None):
logger.getLogger().error("{0}".format(err)) logger.getLogger().error("{0}".format(err))
sys.stderr.write(str(err)) sys.stderr.write(str(err))
logger.getLogger().error(abortmessage) logger.getLogger().error(abortmessage)
sys.stderr.write(abortmessage) sys.stderr.write(abortmessage+"\n")
return err.errorCode return err.errorCode
except Error as err: except Error as err:
logger.getLogger().error("message: %s [CODE %s]", err.msg, err.errorCode) logger.getLogger().error("message: %s [CODE %s]", err.msg, err.errorCode)
sys.stderr.write(str(err)) sys.stderr.write(str(err))
logger.getLogger().error(abortmessage) logger.getLogger().error(abortmessage)
sys.stderr.write(abortmessage) sys.stderr.write(abortmessage+"\n")
return err.errorCode return err.errorCode
except csfile.CsFileError as err: except csfile.CsFileError as err:
logger.getLogger().error("message: %s [CODE %s]", err.msg, err.errorCode) logger.getLogger().error("message: %s [CODE %s]", err.msg, err.errorCode)
sys.stderr.write(str(err)) sys.stderr.write(str(err))
logger.getLogger().error(abortmessage) logger.getLogger().error(abortmessage)
sys.stderr.write(abortmessage) sys.stderr.write(abortmessage+"\n")
return err.errorCode return err.errorCode
except: except:
logger.getLogger().error("unknown execption!") logger.getLogger().error("unknown execption!")
sys.stderr.write("unknown execption!") sys.stderr.write("unknown execption!")
logger.getLogger().error(abortmessage) logger.getLogger().error(abortmessage)
sys.stderr.write(abortmessage) sys.stderr.write(abortmessage+"\n")
return 999 return 999
else: else:
logger.getLogger().info("Checks performed.") 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