mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-29 02:30:12 +00:00
move uninitialized-variable warnings from stdout to stderr
This commit is contained in:
parent
c5482f7f24
commit
fd43f0ff7b
1 changed files with 3 additions and 1 deletions
|
|
@ -9,6 +9,7 @@ package cst
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
|
||||
"miller/src/dsl"
|
||||
"miller/src/lib"
|
||||
|
|
@ -106,7 +107,8 @@ func warnOnASTAux(
|
|||
// -- not thousands of lines of Miller-DSL source code -- so
|
||||
// people can look at their few lines of Miller-DSL code and
|
||||
// spot their error.
|
||||
fmt.Printf(
|
||||
fmt.Fprintf(
|
||||
os.Stderr,
|
||||
"Variable name %s might not have been assigned yet.\n",
|
||||
variableName,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue