cache_manage: fix a print bug in exit main

There is no output print format symbol %, add it and for
man exit, we should use sys.exit

Change-Id: I16cfded354a5a4a10c0524fd5b7cb9f4f9c9e6dd
This commit is contained in:
Chen Fan 2016-08-01 10:37:56 +08:00 committed by Hemanth Makkapati
parent 068cf60808
commit a83653ee97

View File

@ -516,7 +516,7 @@ Commands:
print("Completed in %-0.4f sec." % (end_time - start_time))
sys.exit(result)
except (RuntimeError, NotImplementedError) as e:
print("ERROR: ", e)
sys.exit("ERROR: %s" % e)
if __name__ == '__main__':
main()