Fix error message (#1506)

pull/1507/head
Nikhil Parasaram 3 years ago committed by GitHub
parent 563332bd42
commit 5b3336a7f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      mythril/mythril/mythril_disassembler.py

@ -200,8 +200,8 @@ class MythrilDisassembler:
self.contracts.append(contract)
contracts.append(contract)
except FileNotFoundError:
raise CriticalError("Input file not found: " + file)
except FileNotFoundError as e:
raise CriticalError(f"Input file not found {e}")
except CompilerError as e:
error_msg = str(e)
# Check if error is related to solidity version mismatch

Loading…
Cancel
Save