[PATCH 3 of 3] Improve error handling
Wald Commits
scm-commit at wald.intevation.org
Wed Oct 29 19:52:23 CET 2014
# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1414608726 -3600
# Node ID 572c102b181929f4b8e341b8526a8c0c95777beb
# Parent 6dfc3a1fc70d411b631573519c54529cd66f6254
Improve error handling.
diff -r 6dfc3a1fc70d -r 572c102b1819 artifacts/src/main/java/org/dive4elements/river/artifacts/states/FloodMapState.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/states/FloodMapState.java Wed Oct 29 19:51:39 2014 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/states/FloodMapState.java Wed Oct 29 19:52:06 2014 +0100
@@ -166,7 +166,7 @@
FileUtils.writeStringToFile(f,
content.replaceAll(orig.identifier(), owner.identifier()));
} catch (IOException e) {
- log.debug("failed.");
+ log.error("Failed to rewrite file: " + f + " Error: " + e.getMessage());
}
}
}
More information about the Dive4Elements-commits
mailing list