Skip to content

Commit f12bdce

Browse files
committed
fix: raise error when target is not file/directory
1 parent ad6dedc commit f12bdce

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crytic_compile/crytic_compile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,12 +737,11 @@ def compile_all(target: str, **kwargs: str) -> List[CryticCompile]:
737737
vyper_standard_json.add_source_files(vyper_filenames)
738738
compilations.append(CryticCompile(vyper_standard_json, **kwargs))
739739
else:
740-
raise NotImplementedError()
741740
# TODO split glob into language
742741
# # Attempt to perform glob expansion of target/filename
743742
# globbed_targets = glob.glob(target, recursive=True)
744743
# print(globbed_targets)
745744

746-
# raise ValueError(f"{str(target)} is not a file or directory.")
745+
raise ValueError(f"{str(target)} is not a file or directory.")
747746

748747
return compilations

0 commit comments

Comments
 (0)