From 61623a2e927103c70a7e241ec9866887010298b2 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Wed, 30 Dec 2020 14:52:50 +0100 Subject: [PATCH] Change assert output format --- inferno/src/inferno/file.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inferno/src/inferno/file.cpp b/inferno/src/inferno/file.cpp index 5ef0c08..b0ddd7b 100644 --- a/inferno/src/inferno/file.cpp +++ b/inferno/src/inferno/file.cpp @@ -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) {