Commit 5ef7d84b authored by Mikhail Glushenkov's avatar Mikhail Glushenkov
Browse files

'sandbox delete': exit with 0 when there's no sandbox.

Fixes #2203.
parent 82fd0c2a
......@@ -328,7 +328,7 @@ sandboxDelete :: Verbosity -> SandboxFlags -> GlobalFlags -> IO ()
sandboxDelete verbosity _sandboxFlags globalFlags = do
(useSandbox, _) <- loadConfigOrSandboxConfig verbosity globalFlags mempty
case useSandbox of
NoSandbox -> die "Not in a sandbox."
NoSandbox -> warn verbosity "Not in a sandbox."
UseSandbox sandboxDir -> do
curDir <- getCurrentDirectory
pkgEnvFile <- getSandboxConfigFilePath globalFlags
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment