Skip to content

Commit

Permalink
Revert "Reduce verbosity for InvalidCompilation errors"
Browse files Browse the repository at this point in the history
  • Loading branch information
0xalpharush authored Aug 12, 2024
1 parent 16cfaa7 commit 4701885
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 28 deletions.
10 changes: 2 additions & 8 deletions slither/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from typing import Any, Dict, List, Optional, Sequence, Set, Tuple, Type, Union


from crytic_compile import cryticparser, CryticCompile, InvalidCompilation
from crytic_compile import cryticparser, CryticCompile
from crytic_compile.platform.standard import generate_standard_export
from crytic_compile.platform.etherscan import SUPPORTED_NETWORK
from crytic_compile import compile_all, is_supported
Expand Down Expand Up @@ -93,13 +93,7 @@ def process_all(
detector_classes: List[Type[AbstractDetector]],
printer_classes: List[Type[AbstractPrinter]],
) -> Tuple[List[Slither], List[Dict], List[Output], int]:

try:
compilations = compile_all(target, **vars(args))
except InvalidCompilation:
logger.error("Unable to compile all targets.")
sys.exit(2)

compilations = compile_all(target, **vars(args))
slither_instances = []
results_detectors = []
results_printers = []
Expand Down
20 changes: 0 additions & 20 deletions tests/e2e/test_cli.py

This file was deleted.

0 comments on commit 4701885

Please sign in to comment.