Skip to content

Commit 26485f1

Browse files
committed
Better messages
1 parent b92f6ff commit 26485f1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

unison-cli/src/Unison/Cli/Preferences.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ defaultPrefs = UnisonPreferences {authorName = Nothing}
5252
preferencesCodec :: TomlCodec UnisonPreferences
5353
preferencesCodec =
5454
UnisonPreferences
55-
<$> dioptional (Toml.text "author-name") Toml..= authorName
55+
<$> dioptional (Toml.text "author.name") Toml..= authorName
5656

5757
createPreferencesFile :: (MonadIO m) => FilePath -> m UnisonPreferences
5858
createPreferencesFile preferencesFile = liftIO $ do

unison-cli/src/Unison/CommandLine/OutputMessages.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2386,16 +2386,16 @@ notifyUser dir issueFn = \case
23862386
AnnotatedSuccessfully -> pure $ P.bold "Done."
23872387
AnnotationAborted -> pure (P.wrap "Annotation aborted.")
23882388
PreferencesError fp msg -> pure $
2389-
P.hang ("Error parsing configuration file at " <> P.string fp) (P.text msg)
2389+
P.hang ("Error parsing configuration file at " <> P.string fp <> ". Run " <> IP.makeExample' IP.configEdit <> " to make changes.") (P.newline <> P.text msg)
23902390
MissingAuthorName -> pure $
23912391
P.lines [
23922392
"In order to do this, you need to provide an author name.",
23932393
"You can set your author name by running:",
23942394
P.indentN 2 (IP.makeExample IP.configEdit []),
23952395
"",
2396-
"and add a line like:",
2396+
"then adding a line like:",
23972397
"",
2398-
"author-name = \"Your Name\""
2398+
"author.name = \"Your Name\""
23992399
]
24002400

24012401

0 commit comments

Comments
 (0)