From 90d4c4be3bc15b2f594a0046c07b6f8654659ad5 Mon Sep 17 00:00:00 2001 From: kitsunyan Date: Fri, 20 Dec 2019 07:35:07 +0300 Subject: Add Nim 1.0 support --- lib/install.nim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/install.nim') diff --git a/lib/install.nim b/lib/install.nim index 03bebd5..5130acf 100644 --- a/lib/install.nim +++ b/lib/install.nim @@ -1,4 +1,5 @@ -import future, os, posix, sequtils, strutils +import + os, posix, sequtils, strutils, sugar proc splitCommands(params: seq[string], index: int, res: seq[seq[string]]): seq[seq[string]] = if index < params.len: @@ -53,7 +54,7 @@ proc handleInstall*(params: seq[string]): int = let packages = params[databaseIndex .. ^1] if packages.len /% 3 * 3 != packages.len: - raise newException(SystemError, "invalid arguments") + raise newException(CatchableError, "invalid arguments") let install: seq[tuple[name: string, file: string, mode: string]] = packages .distribute(packages.len /% 3) -- cgit v1.2.3-70-g09d2