Updating iodine

This commit is contained in:
Frederick F. Kautz IV
2015-03-25 00:43:39 -07:00
parent d909a0e297
commit be229473b5
7 changed files with 78 additions and 83 deletions
+1 -1
View File
@@ -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
View File
@@ -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)