| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -248,11 +248,15 @@ public String preprocess(File srcFolder, | |||
| 248 | 248 | srcFolder : new File(srcFolder, packageName.replace('.', '/')); | |
| 249 | 249 | outputFolder.mkdirs(); | |
| 250 | 250 | final File java = new File(outputFolder, sketch.getName() + ".java"); | |
| 251 | - final PrintWriter writer = PApplet.createWriter(java); | ||
| 252 | 251 | try { | |
| 253 | - result = preprocessor.write(writer, bigCode.toString(), codeFolderPackages); | ||
| 254 | - } finally { | ||
| 255 | - writer.close(); | ||
| 252 | + final PrintWriter writer = PApplet.createWriter(java); | ||
| 253 | + try { | ||
| 254 | + result = preprocessor.write(writer, bigCode.toString(), codeFolderPackages); | ||
| 255 | + } finally { | ||
| 256 | + writer.close(); | ||
| 257 | + } | ||
| 258 | + } catch (RuntimeException re) { | ||
| 259 | + throw new SketchException("Could not write " + java.getAbsolutePath()); | ||
| 256 | 260 | } | |
| 257 | 261 | } catch (antlr.RecognitionException re) { | |
| 258 | 262 | // re also returns a column that we're not bothering with for now | |
| Back | FazBrowse Home | New Git URL |
0 commit comments