Merge "Omaha #3549 improve error message" into omaha_14.4.1

Former-commit-id: a9c5622575 [formerly d968b5085d] [formerly 3c874e1aa1] [formerly 7dc4327ffa [formerly 3c874e1aa1 [formerly 6e8ad4c9e2046ac950bbf166a09492a69c88cb7e]]]
Former-commit-id: 7dc4327ffa
Former-commit-id: 432a6dbd7a4b5d78c1acca24871270eef299a2fd [formerly 388c1ca919]
Former-commit-id: b9db837e14
This commit is contained in:
Richard Peter 2014-09-02 14:25:18 -05:00 committed by Gerrit Code Review
commit 87ee958c33

View file

@ -230,14 +230,14 @@ public final class ACARSSoundingTools {
} }
} catch (IOException ioe) { } catch (IOException ioe) {
logger.error("Error reading data for tailnumber " logger.error("Error reading data for tailnumber "
+ tailNumberFile.getName()); + tailNumberFile.getName(), ioe);
} finally { } finally {
if (bf != null) { if (bf != null) {
try { try {
bf.close(); bf.close();
} catch (IOException ioe) { } catch (IOException ioe) {
logger.error("Error closing tailnumber file " logger.error("Error closing tailnumber file "
+ tailNumberFile.getName()); + tailNumberFile.getName(), ioe);
} }
} }
} }
@ -271,7 +271,8 @@ public final class ACARSSoundingTools {
} }
} }
} catch (Exception e) { } catch (Exception e) {
logger.error("Error processing " + tailNumberFile.getName()); logger.error(
"Error processing " + tailNumberFile.getName(), e);
} finally { } finally {
if (writer != null) { if (writer != null) {
try { try {
@ -329,13 +330,14 @@ public final class ACARSSoundingTools {
} }
// All done reading // All done reading
} catch (IOException ioe) { } catch (IOException ioe) {
logger.error("Error reading " + tailNumberFile.getName()); logger.error("Error reading " + tailNumberFile.getName(), ioe);
} finally { } finally {
if (bf != null) { if (bf != null) {
try { try {
bf.close(); bf.close();
} catch (IOException ioe) { } catch (IOException ioe) {
logger.error("Error attempting to close file " + tailNumberFile.getName()); logger.error("Error attempting to close file "
+ tailNumberFile.getName(), ioe);
} }
} }
} }