Skip to content

Commit

Permalink
update wording and transcripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellwrosen committed Jan 8, 2024
1 parent d95184d commit b2737a6
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 19 deletions.
20 changes: 7 additions & 13 deletions unison-cli/src/Unison/CommandLine/OutputMessages.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2222,19 +2222,13 @@ notifyUser dir = \case
<> "again."
]
UpgradeFailure path old new ->
pure $
P.wrap
( "I couldn't automatically upgrade"
<> P.text (NameSegment.toText old)
<> "to"
<> P.group (P.text (NameSegment.toText new) <> ".")
)
<> P.newline
<> P.newline
<> P.wrap
( "I added the problematic definitions to the top of"
<> P.group (prettyFilePath path <> ".")
)
pure . P.wrap $
"I couldn't automatically upgrade"
<> P.text (NameSegment.toText old)
<> "to"
<> P.group (P.text (NameSegment.toText new) <> ".")
<> "However, I've added the definitions that need attention to the top of"
<> P.group (prettyFilePath path <> ".")
UpgradeSuccess old new ->
pure . P.wrap $
"I upgraded"
Expand Down
6 changes: 3 additions & 3 deletions unison-src/transcripts/fix4482.output.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ myproj/main> upgrade foo0 foo1
use lib.foo0.lib.bonk1 bar
##Nat.+ bar bar
I couldn't automatically upgrade foo0 to foo1.
I added the problematic definitions to the top of scratch.u.
I couldn't automatically upgrade foo0 to foo1. However, I've
added the definitions that need attention to the top of
scratch.u.
```
6 changes: 3 additions & 3 deletions unison-src/transcripts/upgrade-sad-path.output.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ proj/main> upgrade old new
use Nat +
foo + 10
I couldn't automatically upgrade old to new.
I added the problematic definitions to the top of scratch.u.
I couldn't automatically upgrade old to new. However, I've
added the definitions that need attention to the top of
scratch.u.
```

0 comments on commit b2737a6

Please sign in to comment.