Skip to content

Commit

Permalink
Merge pull request #1342 from onflow/jribbink/warning-in-stderr
Browse files Browse the repository at this point in the history
Move Cadence 1.0 Warning to os.Stderr
  • Loading branch information
chasefleming authored Jan 12, 2024
2 parents fd943af + f85e274 commit 65febf1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cmd/flow/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ func main() {
return fmt.Sprintf("%s%s%s", strings.Repeat(" ", space), text, strings.Repeat(" ", space))
}

fmt.Println(strings.Repeat("+", width))
fmt.Println(centerText("⚠ Upgrade to Cadence 1.0", width))
fmt.Println(centerText("The Crescendo network upgrade, including Cadence 1.0, is coming soon.", width))
fmt.Println(centerText("You may need to update your existing contracts to support this change.", width))
fmt.Println(centerText("Please visit our migration guide here:", width))
fmt.Println(centerText(url, width))
fmt.Println(strings.Repeat("+", width))
fmt.Fprintln(os.Stderr, strings.Repeat("+", width))
fmt.Fprintln(os.Stderr, centerText("⚠ Upgrade to Cadence 1.0", width))
fmt.Fprintln(os.Stderr, centerText("The Crescendo network upgrade, including Cadence 1.0, is coming soon.", width))
fmt.Fprintln(os.Stderr, centerText("You may need to update your existing contracts to support this change.", width))
fmt.Fprintln(os.Stderr, centerText("Please visit our migration guide here:", width))
fmt.Fprintln(os.Stderr, centerText(url, width))
fmt.Fprintln(os.Stderr, strings.Repeat("+", width))

}
},
Expand Down

0 comments on commit 65febf1

Please sign in to comment.