From 0fa2eaf629cf4981d2d8bedb6984112bb3116abf Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Mon, 23 Mar 2020 22:41:10 -0300 Subject: [PATCH] Added error when no -b option and we can't guess the PCB file --- kiplot/__main__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kiplot/__main__.py b/kiplot/__main__.py index 6308e467..248f143b 100644 --- a/kiplot/__main__.py +++ b/kiplot/__main__.py @@ -48,6 +48,9 @@ def main(): board_file = board_files[0] logger.warning('More than one PCB file found in current directory.\n' ' Using '+board_file+ ' if you want to use another use -b option.') + else: + logger.error('No PCB file found (*.kicad_pcb), use -b to specify one.') + sys.exit(misc.EXIT_BAD_ARGS) else: board_file = args.board_file if not os.path.isfile(board_file):