Skip to content

Commit d6b773b

Browse files
committed
prj2bit: improve ERROR messages
1 parent d94057e commit d6b773b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pyfpga/helpers/prj2bit.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def main():
6363
prjfile = Path(args.prjfile)
6464

6565
if not prjfile.exists():
66-
sys.exit('file not found.')
66+
sys.exit(f'ERROR: {prjfile} file not found.')
6767

6868
directory = prjfile.parent
6969
base_name = prjfile.stem
@@ -72,9 +72,9 @@ def main():
7272
tool = ''
7373
if extension in tool_per_ext:
7474
tool = tool_per_ext[extension]
75-
print(f'* {tool} project file found.')
75+
print(f'INFO: {tool} project file found.')
7676
else:
77-
sys.exit('Unknown project file extension')
77+
sys.exit(f'ERROR: unknown project file extension ({extension})')
7878

7979
# -------------------------------------------------------------------------
8080
# Solving with PyFPGA

0 commit comments

Comments
 (0)