Errorf -> fmt.Errorf

This commit is contained in:
Jae Kwon
2015-04-15 21:49:14 -07:00
parent 58bcad3ea3
commit df1d46d04d
7 changed files with 20 additions and 25 deletions

View File

@ -1,14 +1,9 @@
package common
import (
"errors"
"fmt"
)
func Errorf(s string, args ...interface{}) error {
return errors.New(fmt.Sprintf(s, args...))
}
type StackError struct {
Err interface{}
Stack []byte