mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
supply filename to FileNotFoundException when possible.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -109,6 +109,10 @@ namespace GameRes.Formats.KiriKiri
|
||||
if (null != blended_image)
|
||||
return blended_image;
|
||||
}
|
||||
catch (FileNotFoundException X)
|
||||
{
|
||||
Trace.WriteLine (string.Format ("{0}: {1}", X.Message, X.FileName), "[TlgFormat.Read]");
|
||||
}
|
||||
catch (Exception X)
|
||||
{
|
||||
Trace.WriteLine (X.Message, "[TlgFormat.Read]");
|
||||
|
||||
Reference in New Issue
Block a user