Change assert output format

This commit is contained in:
Riyyi
2020-12-30 14:52:50 +01:00
parent 8827f34cea
commit 61623a2e92
+2 -2
View File
@@ -10,7 +10,7 @@ namespace Inferno {
{
// Create input stream object and open file
std::ifstream file(path.c_str());
ASSERT(file.is_open(), "File could not open! {}", path.c_str());
ASSERT(file.is_open(), "File could not open: '{}'", path.c_str());
// Check if file exists
if (!file.is_open()) {
@@ -21,7 +21,7 @@ namespace Inferno {
file.seekg(0, std::ios::end);
int length = file.tellg();
file.seekg(0, std::ios::beg);
ASSERT(length != -1, "File could not determine length! {}", path.c_str());
ASSERT(length != -1, "File could not determine length: '{}'", path.c_str());
// Check for valid file length
if (length == -1) {