There was an error while loading. Please reload this page.
1 parent 38df630 commit 6dc029dCopy full SHA for 6dc029d
main/java/uk/co/real_logic/sbe/SbeTool.java
@@ -98,8 +98,7 @@ public static void main(final String[] args) throws Exception
98
99
for (final String fileName : args)
100
{
101
- Ir ir = null;
102
-
+ final Ir ir;
103
if (fileName.endsWith(".xml"))
104
105
ir = new IrGenerator().generate(parseSchema(fileName), System.getProperty(TARGET_NAMESPACE));
@@ -110,7 +109,9 @@ else if (fileName.endsWith(".sbeir"))
110
109
}
111
else
112
113
- System.out.println("File format not supported.");
+ System.err.println("Input file format not supported: " + fileName);
+ System.exit(-1);
114
+ return;
115
116
117
if (Boolean.parseBoolean(System.getProperty(GENERATE_STUBS, "true")))
0 commit comments