ADT: make sure to log exceptions that might happen when

loading the SDK.
This commit is contained in:
Raphael
2009-06-04 15:13:28 -07:00
parent 318b056568
commit 0104d05f40

View File

@@ -989,7 +989,7 @@ public class AdtPlugin extends AbstractUIPlugin {
} catch (Throwable t) {
log(t, "pingUsageServer failed"); //$NON-NLS-1$
return new Status(IStatus.ERROR, PLUGIN_ID,
"pingUsageServer failed", t);
"pingUsageServer failed", t); //$NON-NLS-1$
}
}
};
@@ -1096,6 +1096,11 @@ public class AdtPlugin extends AbstractUIPlugin {
}
}
});
} catch (Throwable t) {
log(t, "Unknown exception in parseSdkContent."); //$NON-NLS-1$
return new Status(IStatus.ERROR, PLUGIN_ID,
"parseSdkContent failed", t); //$NON-NLS-1$
} finally {
mSdkIsLoading = false;
if (monitor != null) {