Add file-exist check for input file

This commit is contained in:
Dennis Potter 2021-09-06 11:58:01 -07:00
parent 4f2ac8868a
commit a3b6e1caf8
Signed by: Dennis
GPG Key ID: 186A8AD440942BAF

View File

@ -41,6 +41,9 @@ if __name__ == "__main__":
root = rdlc.elaborate()
except RDLCompileError:
sys.exit(1)
except FileNotFoundError:
logger.fatal("Could not find '{}'".format(input_file))
sys.exit(1)
addrmap = AddrMap(root.top, config)