From c5b7ceff3eae3bac93598df196c0c836977957a4 Mon Sep 17 00:00:00 2001 From: marcelb Date: Thu, 22 Jun 2023 18:47:38 +0200 Subject: [PATCH] Throw string --- src/config.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.cpp b/src/config.cpp index decabe8..73570de 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -4,10 +4,10 @@ config::config(const string _configFilePath, const vector _necessary) { necessary = _necessary; if(!init(_configFilePath)) { - throw "[ERROR] Init config file "; + throw string("[ERROR] Init config file "); } if (!isHaveNecessary()) { - throw "[ERROR] Configuration file does not have all the required fields "; + throw string("[ERROR] Configuration file does not have all the required fields "); } }