supply filename to FileNotFoundException when possible.

This commit is contained in:
morkt
2016-10-24 19:57:58 +04:00
parent 3034d55d47
commit c97985e5d0
3 changed files with 8 additions and 4 deletions

View File

@@ -300,7 +300,7 @@ namespace GameRes.Formats.Entis
{
var ref_info = ReadMetaData (ref_src) as EriMetaData;
if (null == ref_info)
throw new FileNotFoundException ("Referenced image not found");
throw new FileNotFoundException ("Referenced image not found", ref_file);
ref_info.FileName = ref_file;
var ref_reader = ReadImageData (ref_src, ref_info);
AddImageBuffer (meta, reader.Data, ref_info, ref_reader.Data);