Skip to content

Commit

Permalink
Added further information to Solidity generator error.
Browse files Browse the repository at this point in the history
  • Loading branch information
conor10 committed Nov 11, 2016
1 parent 22ede3c commit 0695ae1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,15 @@ private void generate() throws IOException, ClassNotFoundException {

File binaryFile = new File(binaryFileLocation);
if (!binaryFile.exists()) {
exitError("Invalid input binary file specified");
exitError("Invalid input binary file specified: " + binaryFileLocation);
}

byte[] bytes = Files.readAllBytes(Paths.get(binaryFile.toURI()));
String binary = new String(bytes);

File absFile = new File(absFileLocation);
if (!absFile.exists() || !absFile.canRead()) {
exitError("Invalid input ABI file specified");
exitError("Invalid input ABI file specified: " + absFileLocation);
}
String fileName = absFile.getName();
String contractName = getFileNameNoExtension(fileName);
Expand Down

0 comments on commit 0695ae1

Please sign in to comment.