add error messages (#16679)

This commit is contained in:
flywind 2021-01-11 00:26:52 -06:00 • committed by GitHub
commit 510e383d92
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -795,7 +795,7 @@ proc main() =
var subPath = p.key.string
let nimRoot = currentSourcePath / "../.."
# makes sure points to this regardless of cwd or which nim is used to compile this.
doAssert dirExists(nimRoot/testsDir) # sanity check
doAssert(dirExists(nimRoot/testsDir), nimRoot/testsDir & " doesn't exist!") # sanity check
if subPath.isAbsolute: subPath = subPath.relativePath(nimRoot)
# at least one directory is required in the path, to use as a category name
let pathParts = subPath.relativePath(testsDir).split({DirSep, AltSep})