Skip to content

Commit

Permalink
better error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
daejunpark committed Jul 14, 2023
1 parent 7ef9e7a commit 6ef4ea0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/halmos/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ def parse_build_out(args: argparse.Namespace) -> Dict:
result = {} # compiler version -> source filename -> contract name -> (json, type)

out_path = os.path.join(args.root, args.forge_build_out)
if not os.path.exists(out_path): raise FileNotFoundError(f'{out_path} does not exist')
if not os.path.exists(out_path): raise FileNotFoundError(f'the build output directory `{out_path}` does not exist')

for sol_dirname in os.listdir(out_path): # for each source filename
if not sol_dirname.endswith('.sol'): continue
Expand Down

0 comments on commit 6ef4ea0

Please sign in to comment.