From 2b76173d4ffb29c11d0bc1bca903f385e657e452 Mon Sep 17 00:00:00 2001 From: Cloudperry Date: Sat, 22 Jul 2023 07:15:54 +0300 Subject: [PATCH] Fix two typos in error messages (#1126) * Fix typo (to build the the package -> to build the package) * Fix typo (exists the the cache -> exists in the cache) --- src/nimblepkg/displaymessages.nim | 2 +- src/nimblepkg/packageparser.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nimblepkg/displaymessages.nim b/src/nimblepkg/displaymessages.nim index 46e6d27e..1c9c20c6 100644 --- a/src/nimblepkg/displaymessages.nim +++ b/src/nimblepkg/displaymessages.nim @@ -149,7 +149,7 @@ proc invalidDevelopDependenciesVersionsMsg*(errors: seq[string]): string = proc pkgAlreadyExistsInTheCacheMsg*(name, version, checksum: string): string = &"A package \"{name}@{version}\" with checksum \"{checksum}\" already " & - "exists the the cache." + "exists in the cache." proc pkgAlreadyExistsInTheCacheMsg*(pkgInfo: PackageInfo): string = pkgAlreadyExistsInTheCacheMsg( diff --git a/src/nimblepkg/packageparser.nim b/src/nimblepkg/packageparser.nim index 07d31a62..3a8c6fca 100644 --- a/src/nimblepkg/packageparser.nim +++ b/src/nimblepkg/packageparser.nim @@ -125,7 +125,7 @@ proc validatePackageStructure(pkgInfo: PackageInfo, options: Options) = "the main module, or if it is one of several " & "modules exposed by '$4', then move it into a '$2' subdirectory. " & "If it's a test file or otherwise not required " & - "to build the the package '$1', prevent its installation " & + "to build the package '$1', prevent its installation " & "by adding `skipFiles = @[\"$3\"]` to the .nimble file. See " & "https://github.com/nim-lang/nimble#libraries for more info.") % [pkgInfo.basicInfo.name & ext, correctDir & DirSep, file & ext, pkgInfo.basicInfo.name]