forked from TrueCloudLab/restic
cmd: Don't exit if printing to stdout or stderr fails (closes #2102)
This commit is contained in:
parent
98526b8dbe
commit
de54618852
1 changed files with 0 additions and 2 deletions
|
@ -181,7 +181,6 @@ func Printf(format string, args ...interface{}) {
|
||||||
_, err := fmt.Fprintf(globalOptions.stdout, format, args...)
|
_, err := fmt.Fprintf(globalOptions.stdout, format, args...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintf(os.Stderr, "unable to write to stdout: %v\n", err)
|
fmt.Fprintf(os.Stderr, "unable to write to stdout: %v\n", err)
|
||||||
Exit(100)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -222,7 +221,6 @@ func Warnf(format string, args ...interface{}) {
|
||||||
_, err := fmt.Fprintf(globalOptions.stderr, format, args...)
|
_, err := fmt.Fprintf(globalOptions.stderr, format, args...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Fprintf(os.Stderr, "unable to write to stderr: %v\n", err)
|
fmt.Fprintf(os.Stderr, "unable to write to stderr: %v\n", err)
|
||||||
Exit(100)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue