diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-05-27 16:00:29 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2018-05-27 16:04:30 +0200 |
| commit | b20db3b8a79c3e4e3421b1882fa80964726bdb4b (patch) | |
| tree | a38189c431fa16c5fa7069518fe3021d261590b5 /examples/oldconfig.py | |
| parent | 7427079f008155f0901a5d53f9f1d4175381a585 (diff) | |
Simplify error exits
Had missed sys.exit(msg).
Diffstat (limited to 'examples/oldconfig.py')
| -rw-r--r-- | examples/oldconfig.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/oldconfig.py b/examples/oldconfig.py index 722c9e4..4f8421a 100644 --- a/examples/oldconfig.py +++ b/examples/oldconfig.py @@ -317,12 +317,10 @@ def do_oldconfig_rec(node): if __name__ == "__main__": if len(sys.argv) != 2: - eprint("error: pass name of base Kconfig file as argument") - sys.exit(1) + sys.exit("error: pass name of base Kconfig file as argument") if not os.path.exists(".config"): - eprint("error: no existing .config") - sys.exit(1) + sys.exit("error: no existing .config") kconf = Kconfig(sys.argv[1]) |
