Skip to content

Commit 0f6cb12

Browse files
committed
make error thrown during binding generation more verbose
1 parent 9ebf503 commit 0f6cb12

File tree

1 file changed

+2
-2
lines changed
  • android-static-binding-generator/project/staticbindinggenerator/src/main/java/org/nativescript/staticbindinggenerator

1 file changed

+2
-2
lines changed

android-static-binding-generator/project/staticbindinggenerator/src/main/java/org/nativescript/staticbindinggenerator/Generator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ public void writeBindings(String filename) throws IOException, ClassNotFoundExce
6363
// Compare text contents for equality
6464
String content = new String(Files.readAllBytes(Paths.get(b.getFile().toString())));
6565
if (content.equals(b.getContent())) {
66-
System.out.println("Warning: File already exists. This could mean the same code has been parsed more than once from two or more different files.");
66+
System.out.println("Warning: File already exists. This could mean the same code has been parsed more than once from two or more different files. \nFile:" + b.getFile());
6767
} else {
68-
throw new IOException("File already exists. This may lead to undesired behavior.\nPlease change the name of one of the extended classes.\n" + b.getFile());
68+
throw new IOException("File already exists. This may lead to undesired behavior.\nPlease change the name of one of the extended classes.\nFile:" + b.getFile() + " Class: " + b.getClassname());
6969
}
7070
}
7171
}

0 commit comments

Comments
 (0)