mirror of
https://github.com/status-im/consul.git
synced 2025-02-24 03:18:26 +00:00
Merge pull request #2548 from boingram/master
Use ErrorWriter in cli so that errors get written to stderr
This commit is contained in:
commit
2c14ef915b
@ -16,7 +16,7 @@ import (
|
|||||||
var Commands map[string]cli.CommandFactory
|
var Commands map[string]cli.CommandFactory
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
ui := &cli.BasicUi{Writer: os.Stdout}
|
ui := &cli.BasicUi{Writer: os.Stdout, ErrorWriter: os.Stderr}
|
||||||
|
|
||||||
Commands = map[string]cli.CommandFactory{
|
Commands = map[string]cli.CommandFactory{
|
||||||
"agent": func() (cli.Command, error) {
|
"agent": func() (cli.Command, error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user