Fixed problem with opening non-existing files through CachingFileStorage

This commit is contained in:
Philipp Crocoll
2013-08-14 06:36:12 +02:00
parent e014b2c185
commit 04acfb99ed
3 changed files with 32 additions and 2 deletions

View File

@@ -66,7 +66,7 @@ namespace keepass2android.Io
{
if ((ex.Response is HttpWebResponse) && (((HttpWebResponse)ex.Response).StatusCode == HttpStatusCode.NotFound))
{
throw new FileNotFoundException("404!", ioc.Path, ex);
throw new FileNotFoundException(ex.Message, ioc.Path, ex);
}
throw;
}