Skip to content

Commit 6f0daf7

Browse files
committed
Error if a platform is not found when using --compile-force-framework
1 parent c4a2480 commit 6f0daf7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crytic_compile/crytic_compile.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,10 @@ def _init_platform(self, target: str, **kwargs: str) -> AbstractPlatform:
606606
(p(target) for p in platforms if p.NAME.lower() == compile_force_framework.lower()),
607607
None,
608608
)
609+
if not platform:
610+
raise ValueError(
611+
f"The framework specified {compile_force_framework} does not exist"
612+
)
609613

610614
if not platform:
611615
matching_platforms = [p for p in platforms if p.is_supported(target, **kwargs)]

0 commit comments

Comments
 (0)