Improved error message

Former-commit-id: e7193cb36ffba475c6b1c37822676da31042bf15
This commit is contained in:
Lynix 2013-04-09 11:33:18 +02:00
parent 38a28c26d2
commit f8e942af65
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ bool NzResourceLoader<Type, Parameters>::LoadFromFile(Type* resource, const NzSt
NzString ext = path.SubstrFrom('.', -1, true); NzString ext = path.SubstrFrom('.', -1, true);
if (ext.IsEmpty()) if (ext.IsEmpty())
{ {
NazaraError("Failed to get file extension"); NazaraError("Failed to get file extension from \"" + filePath + '"');
return false; return false;
} }
@ -59,7 +59,7 @@ bool NzResourceLoader<Type, Parameters>::LoadFromFile(Type* resource, const NzSt
{ {
if (!file.Open(NzFile::ReadOnly)) if (!file.Open(NzFile::ReadOnly))
{ {
NazaraError("Failed to load file: unable to open file"); NazaraError("Failed to load file: unable to open \"" + filePath + '"');
return false; return false;
} }
} }