From 7547159a4893445c5fba4c5d318271ae43604421 Mon Sep 17 00:00:00 2001 From: wheremyfoodat Date: Fri, 18 Nov 2022 00:07:14 +0200 Subject: [PATCH] [Helpers] Fix oopsie --- include/helpers.hpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/include/helpers.hpp b/include/helpers.hpp index 8a3eb2fc..1d7c287b 100644 --- a/include/helpers.hpp +++ b/include/helpers.hpp @@ -23,21 +23,18 @@ namespace Helpers { va_start(args, fmt); std::cout << termcolor::on_red << "[FATAL] "; std::vprintf (fmt, args); - std::cout << termcolor::reset; - std::cout << std::endl; + std::cout << termcolor::reset << "\n"; va_end(args); exit(1); } static void warn(const char* fmt, ...) { - return; std::va_list args; va_start(args, fmt); std::cout << termcolor::on_red << "[Warning] "; std::vprintf (fmt, args); - std::cout << termcolor::reset; - std::cout << "\n"; + std::cout << termcolor::reset << "\n"; va_end(args); }