commit | e2a95dc8065625738a8ed14a8fc91f9e54a447e5 | [log] [tgz] |
---|---|---|
author | Uemit Seren <uemit.seren@gmail.com> | Wed Jan 13 11:32:20 2016 +0100 |
committer | Roberto Lublinerman <rluble@google.com> | Thu Mar 24 18:06:27 2016 +0000 |
tree | 83c82aaefb02b8579b460136a2d4992263acd474 | |
parent | a4532e94d2c3bc946245f79225237cf3aae72de0 [diff] |
Log instead of throwing when saving generated sources Filenames exceeding file system limits shouldn't break the build if they cannot be saved to disk; they just wouldn't be available for sourcemaps. This is a similar issue to https://github.com/gwtproject/gwt/issues/6014 Bug: #9263 Bug-Link: https://github.com/gwtproject/gwt/issues/9263 Change-Id: Ie4b9f8aaaffaec04640cc92ed3071c0ae85fa35e
diff --git a/dev/core/src/com/google/gwt/dev/SourceSaver.java b/dev/core/src/com/google/gwt/dev/SourceSaver.java index c0e5896..baed342 100644 --- a/dev/core/src/com/google/gwt/dev/SourceSaver.java +++ b/dev/core/src/com/google/gwt/dev/SourceSaver.java
@@ -230,8 +230,7 @@ out.close(); } } catch (IOException e) { - log.log(TreeLogger.ERROR, "Fatal error emitting artifact: " + newPath, e); - throw new UnableToCompleteException(); + log.log(TreeLogger.WARN, "Error emitting artifact: " + newPath, e); } } }