Revision: 3846
Author: [email protected]
Date: Fri Aug 6 07:20:07 2010
Log: The Update checker will now only warn on failure if it is in verbose
mode.
http://code.google.com/p/power-architect/source/detail?r=3846
Modified:
/trunk/src/main/java/ca/sqlpower/architect/swingui/action/CheckForUpdateAction.java
=======================================
---
/trunk/src/main/java/ca/sqlpower/architect/swingui/action/CheckForUpdateAction.java
Thu Aug 5 16:05:33 2010
+++
/trunk/src/main/java/ca/sqlpower/architect/swingui/action/CheckForUpdateAction.java
Fri Aug 6 07:20:07 2010
@@ -92,12 +92,16 @@
}
} catch (IOException ex) {
logger.error("Fail to retrieve current version number!");
//$NON-NLS-1$
-
ASUtils.showExceptionDialogNoReport(getSession().getArchitectFrame(),
-
Messages.getString("CheckForUpdateAction.failedToCheckForUpdate"), ex);
//$NON-NLS-1$
+ if (verbose) {
+
ASUtils.showExceptionDialogNoReport(getSession().getArchitectFrame(),
+
Messages.getString("CheckForUpdateAction.failedToCheckForUpdate"), ex);
//$NON-NLS-1$
+ }
} finally {
urlc.disconnect();
try {
- propertyInputStream.close();
+ if (propertyInputStream != null) {
+ propertyInputStream.close();
+ }
} catch (IOException ex2) {
logger.error("Exception while trying to close input
stream."); //$NON-NLS-1$
throw new RuntimeException(ex2);