From 62b6a5c5e091397212d8cfb44f455b375cf62842 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Jos=C3=A9=20Guti=C3=A9rrez=20de=20Quevedo=20P=C3=A9?= =?UTF-8?q?rez?= Date: Fri, 5 Sep 2014 11:57:22 +0200 Subject: [PATCH] FIX: throw an Exception if we don't specify a config file --- src/hermes.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hermes.cpp b/src/hermes.cpp index a1f0c8f..6bdd6b1 100644 --- a/src/hermes.cpp +++ b/src/hermes.cpp @@ -107,6 +107,8 @@ main throw Exception(string(_("Config file "))+argv[1]+_(" doesn't exist or is not readable."),__FILE__,__LINE__); cfg.parse(argv[1]); } + else + throw Exception(_("Config file not specified"), __FILE__, __LINE__); cfg.validateConfig(); } catch(Exception &e)