diff options
author | 2014-01-18 13:21:12 -0400 | |
---|---|---|
committer | 2014-01-18 13:21:12 -0400 | |
commit | 112041fa3c9a6a36b485806c60cf87ccf8a373ad (patch) | |
tree | d8db93bba4c6ff900c2235b657a45929abd69b6d | |
parent | 43b16daa385d929f4279d043f29a4312f1aea7bd (diff) |
improve output when there are no known special remotes
-rw-r--r-- | Command/EnableRemote.hs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Command/EnableRemote.hs b/Command/EnableRemote.hs index f6a1b819c..1905acd8d 100644 --- a/Command/EnableRemote.hs +++ b/Command/EnableRemote.hs @@ -40,10 +40,10 @@ start (name:ws) = go =<< InitRemote.findExisting name unknownNameError :: String -> Annex a unknownNameError prefix = do names <- InitRemote.remoteNames - error $ prefix ++ + error $ prefix ++ "\n" ++ if null names - then "" - else " Known special remotes: " ++ unwords names + then "(No special remotes are currently known; perhaps use initremote instead?)" + else "Known special remotes: " ++ unwords names perform :: RemoteType -> UUID -> R.RemoteConfig -> CommandPerform perform t u c = do |