Skip to content

Commit

Permalink
fix: raise error when target is not file/directory
Browse files Browse the repository at this point in the history
  • Loading branch information
0xalpharush committed Jan 16, 2024
1 parent ad6dedc commit f12bdce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crytic_compile/crytic_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,12 +737,11 @@ def compile_all(target: str, **kwargs: str) -> List[CryticCompile]:
vyper_standard_json.add_source_files(vyper_filenames)
compilations.append(CryticCompile(vyper_standard_json, **kwargs))
else:
raise NotImplementedError()
# TODO split glob into language
# # Attempt to perform glob expansion of target/filename
# globbed_targets = glob.glob(target, recursive=True)
# print(globbed_targets)

# raise ValueError(f"{str(target)} is not a file or directory.")
raise ValueError(f"{str(target)} is not a file or directory.")

return compilations

0 comments on commit f12bdce

Please sign in to comment.