From 17cb6ad02c00c48f00f0e4fe38cfdfd98a4e1cc0 Mon Sep 17 00:00:00 2001 From: 4kord <4kordoff@gmail.com> Date: Tue, 9 Jul 2024 20:50:11 +0300 Subject: [PATCH] use stderr instead of stdout for ui error writer --- sql-migrate/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql-migrate/main.go b/sql-migrate/main.go index 48b2c243..6c1826ad 100644 --- a/sql-migrate/main.go +++ b/sql-migrate/main.go @@ -14,7 +14,7 @@ func main() { var ui cli.Ui func realMain() int { - ui = &cli.BasicUi{Writer: os.Stdout} + ui = &cli.BasicUi{Writer: os.Stdout, ErrorWriter: os.Stderr} cli := &cli.CLI{ Args: os.Args[1:],