mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 04:00:25 +03:00
Updating iodine
This commit is contained in:
+1
-1
@@ -44,7 +44,7 @@ type StackEntry struct {
|
||||
|
||||
// Wrap an error, turning it into an iodine error.
|
||||
// Adds an initial stack trace.
|
||||
func Wrap(err error, data map[string]string) *Error {
|
||||
func New(err error, data map[string]string) *Error {
|
||||
entry := createStackEntry()
|
||||
for k, v := range data {
|
||||
entry.Data[k] = v
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ import (
|
||||
)
|
||||
|
||||
func TestIodine(t *testing.T) {
|
||||
iodineError := Wrap(errors.New("Hello"), nil)
|
||||
iodineError := New(errors.New("Hello"), nil)
|
||||
iodineError.Annotate(nil)
|
||||
iodineError.Annotate(nil)
|
||||
iodineError.Annotate(nil)
|
||||
|
||||
Reference in New Issue
Block a user