diff --git a/nimble.nimble b/nimble.nimble index 68b439b..7a8e416 100644 --- a/nimble.nimble +++ b/nimble.nimble @@ -17,6 +17,7 @@ license = "BSD" bin = @["nimble"] srcDir = "src" +installExt = @["nim"] # Dependencies diff --git a/src/nimble.nim b/src/nimble.nim index 582912b..6f5ea0a 100644 --- a/src/nimble.nim +++ b/src/nimble.nim @@ -1110,7 +1110,11 @@ when isMainModule: except NimbleQuit: discard finally: - removeDir(getNimbleTempDir()) + try: + removeDir(getNimbleTempDir()) + except OSError: + let msg = "Couldn't remove Nimble's temp dir" + display("Warning:", msg, Warning, MediumPriority) if error.len > 0: displayTip()