fix https://github.com/PhilippC/keepass2android/issues/1015 (bad error message when file not found)
This commit is contained in:
		| @@ -88,6 +88,7 @@ namespace keepass2android | ||||
| 		ReadOnlyReason_ReadOnlyKitKat, | ||||
|         ReadOnlyReason_LocalBackup, | ||||
|         Ok, | ||||
|         cancel | ||||
|         cancel, | ||||
|         FileNotFound | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -123,7 +123,7 @@ namespace keepass2android | ||||
| 			{ | ||||
| 				if (!(e is InvalidCompositeKeyException)) | ||||
| 					Kp2aLog.LogUnexpectedError(e); | ||||
| 				Finish(false, _app.GetResourceString(UiStringKey.ErrorOcurred) + " " + e.Message, false, Exception); | ||||
| 				Finish(false, _app.GetResourceString(UiStringKey.ErrorOcurred) + " " + (e.Message ?? (e is FileNotFoundException ? _app.GetResourceString(UiStringKey.FileNotFound) :  "")), false, Exception); | ||||
| 				return; | ||||
| 			} | ||||
| 			 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user