mirror of
https://github.com/unisonweb/unison.git
synced 2024-10-04 21:57:25 +03:00
don't terminate the repl if rename target doesn't exist
This commit is contained in:
parent
12c2f0f878
commit
1374348994
@ -440,7 +440,7 @@ main dir currentBranchName initialFile startRuntime codebase = do
|
||||
go' b = go b name
|
||||
in
|
||||
case (toList terms, toList types) of
|
||||
([], []) -> putStrLn "I couldn't find anything by that name."
|
||||
([], []) -> putStrLn "I couldn't find anything by that name." >> go' branch
|
||||
([_term], [] ) -> renameTerm branch >>= go'
|
||||
([] , [_typ]) -> renameType branch >>= go'
|
||||
([_term], [_typ]) -> do
|
||||
|
Loading…
Reference in New Issue
Block a user