diff --git a/src/main/nim/strawbosspkg/configuration.nim b/src/main/nim/strawbosspkg/configuration.nim index f01d5e8..68d9c5e 100644 --- a/src/main/nim/strawbosspkg/configuration.nim +++ b/src/main/nim/strawbosspkg/configuration.nim @@ -70,7 +70,7 @@ proc findProject*(cfg: StrawBossConfig, projectName: string): ProjectDef = let candidates = cfg.projects.filterIt(it.name == projectName) if candidates.len == 0: raise newException(KeyError, "no project named " & projectName) - elif candidates.len > 0: + elif candidates.len > 1: raise newException(KeyError, "multiple projects named " & projectName) else: result = candidates[0]