Commit a1eb3221 authored by Nong Hoang Tu's avatar Nong Hoang Tu
Browse files

Add show exception msg

Fix dev_mail to dev_email
parent 60e95daa
Pipeline #2184 canceled with stages
......@@ -134,14 +134,15 @@ proc initConfig*(config: var ProgConf): bool =
# Check name and email of maintainer
if isEmptyOrWhitespace(conf["dev_name"].getStr()) or
mainLog.log(lvlError, "Name and email of maintainer must be not empty!")
return false
config.devName = conf["dev_name"].getStr()
config.devMail = conf["dev_mail"].getStr()
config.devMail = conf["dev_email"].getStr()
mainLog.log(lvlInfo, "Load configuration completed.")
return true
mainLog.log(lvlError, "Unexpected error while reading configurations.")
echo getCurrentExceptionMsg()
return false
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment