From 1fa779a2d7a88fe4e3e4bbc36605a7f30930ece6 Mon Sep 17 00:00:00 2001 From: kitsunyan Date: Thu, 31 May 2018 10:00:31 +0300 Subject: Don't parse and validate config when "--help" is used --- src/utils.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/utils.nim') diff --git a/src/utils.nim b/src/utils.nim index 7dcf620..67bf140 100644 --- a/src/utils.nim +++ b/src/utils.nim @@ -41,10 +41,10 @@ const pacmanCmd* = "/usr/bin/pacman" makepkgCmd* = "/usr/bin/makepkg" -template haltError*(code: int): untyped = +template haltError*(exitCode: int): untyped = var e: ref HaltError new(e) - e.code = code + e.code = exitCode e template commandError*(message: string, colorNeeded: Option[bool] = none(bool), -- cgit v1.2.3-70-g09d2