Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/states/FloodMapState.java @ 8456:572c102b1819
Improve error handling.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Wed, 29 Oct 2014 19:52:06 +0100 |
parents | b9a8463ac636 |
children | e9d912c97fa8 |
comparison
equal
deleted
inserted
replaced
8455:6dfc3a1fc70d | 8456:572c102b1819 |
---|---|
164 try { | 164 try { |
165 String content = FileUtils.readFileToString(f); | 165 String content = FileUtils.readFileToString(f); |
166 FileUtils.writeStringToFile(f, | 166 FileUtils.writeStringToFile(f, |
167 content.replaceAll(orig.identifier(), owner.identifier())); | 167 content.replaceAll(orig.identifier(), owner.identifier())); |
168 } catch (IOException e) { | 168 } catch (IOException e) { |
169 log.debug("failed."); | 169 log.error("Failed to rewrite file: " + f + " Error: " + e.getMessage()); |
170 } | 170 } |
171 } | 171 } |
172 } | 172 } |
173 } | 173 } |
174 | 174 |