add error messages (#16679)

This commit is contained in:
flywind
2021-01-11 00:26:52 -06:00
committed by GitHub
parent 2c6f5ae681
commit 510e383d92

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})