Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Remove errors.Print #23

Merged
merged 1 commit into from
May 10, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ import (
"errors"
"fmt"
"io"
"os"
"runtime"
"strings"
)
Expand Down Expand Up @@ -202,7 +201,7 @@ func Cause(err error) error {
return err
}

// Print prints the error to Stderr.
// Fprint prints the error to the supplied writer.
// If the error implements the Causer interface described in Cause
// Print will recurse into the error's cause.
// If the error implements the inteface:
Expand All @@ -212,12 +211,6 @@ func Cause(err error) error {
// }
//
// Print will also print the file and line of the error.
func Print(err error) {
Fprint(os.Stderr, err)
}

// Fprint prints the error to the supplied writer.
// The format of the output is the same as Print.
// If err is nil, nothing is printed.
func Fprint(w io.Writer, err error) {
type location interface {
Expand Down