From da8b5d148cd781db2bb3cf4cbdc70d9e5261ac5d Mon Sep 17 00:00:00 2001 From: Luke San Antonio Date: Tue, 14 Jun 2016 22:17:40 -0400 Subject: [PATCH] Add newline to error messages in LoadExternalFile --- tiny_gltf_loader.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }