diff --git a/tiny_gltf_loader.h b/tiny_gltf_loader.h index 9d21ac0..c499861 100644 --- a/tiny_gltf_loader.h +++ b/tiny_gltf_loader.h @@ -613,7 +613,7 @@ static bool LoadExternalFile(std::vector *out, std::string *err, std::string filepath = FindFile(paths, filename); if (filepath.empty()) { if (err) { - (*err) += "File not found : " + filename; + (*err) += "File not found : " + filename + "\n"; } return false; } @@ -621,7 +621,7 @@ static bool LoadExternalFile(std::vector *out, std::string *err, std::ifstream f(filepath.c_str(), std::ifstream::binary); if (!f) { if (err) { - (*err) += "File open error : " + filepath; + (*err) += "File open error : " + filepath + "\n"; } return false; }