Pass error messages upwards.

This commit is contained in:
Brian Pellin
2009-08-21 00:22:56 -05:00
parent 5d13c17d52
commit 3b176afeae
2 changed files with 3 additions and 2 deletions

View File

@@ -3,7 +3,8 @@ KeePassDroid (0.4)
KeePassDroid (0.3.4)
* Add context menus
* Deal with crash when resuming activity after the process has been killed
* Increase clipboard clear time to 60 seconds as a stopgap until I come add a configurable setting.
* Increase clipboard clear time as a stopgap until I come add a configurable setting.
* Pass upwards potentially more helpful error messages
KeePassDroid (0.3.3)
* Add new icon and UI enhancements from Francis Jacquerye

View File

@@ -261,7 +261,7 @@ public class PasswordActivity extends Activity {
} catch (FileNotFoundException e) {
uiHandler.post(new AfterLoad(R.string.FileNotFound));
} catch (IOException e) {
uiHandler.post(new AfterLoad("Unknown error."));
uiHandler.post(new AfterLoad(e.getMessage()));
} catch (InvalidKeyFileException e) {
uiHandler.post(new AfterLoad(e.getMessage()));
}