From cf8fb87df13af045108e458ef39cfe246d1b8de0 Mon Sep 17 00:00:00 2001
From: Brian Tiger Chow <brian.holderchow@gmail.com>
Date: Sun, 16 Nov 2014 10:37:06 -0800
Subject: [PATCH] refactor(errors) debugerror -> errors

License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
---
 cmd/ipfs2/init.go                                  | 2 +-
 cmd/ipfs2/main.go                                  | 2 +-
 config/config.go                                   | 2 +-
 util/{debugerror/debugerror.go => errors/debug.go} | 4 ++--
 4 files changed, 5 insertions(+), 5 deletions(-)
 rename util/{debugerror/debugerror.go => errors/debug.go} (85%)

diff --git a/cmd/ipfs2/init.go b/cmd/ipfs2/init.go
index fbd202047..2a99647ad 100644
--- a/cmd/ipfs2/init.go
+++ b/cmd/ipfs2/init.go
@@ -16,7 +16,7 @@ import (
 	chunk "github.com/jbenet/go-ipfs/importer/chunk"
 	peer "github.com/jbenet/go-ipfs/peer"
 	u "github.com/jbenet/go-ipfs/util"
-	errors "github.com/jbenet/go-ipfs/util/debugerror"
+	errors "github.com/jbenet/go-ipfs/util/errors"
 )
 
 var initCmd = &cmds.Command{
diff --git a/cmd/ipfs2/main.go b/cmd/ipfs2/main.go
index a662e273a..6ea454c43 100644
--- a/cmd/ipfs2/main.go
+++ b/cmd/ipfs2/main.go
@@ -21,7 +21,7 @@ import (
 	daemon "github.com/jbenet/go-ipfs/daemon2"
 	updates "github.com/jbenet/go-ipfs/updates"
 	u "github.com/jbenet/go-ipfs/util"
-	errors "github.com/jbenet/go-ipfs/util/debugerror"
+	errors "github.com/jbenet/go-ipfs/util/errors"
 	eventlog "github.com/jbenet/go-ipfs/util/eventlog"
 )
 
diff --git a/config/config.go b/config/config.go
index 74a25db9b..ed53509dc 100644
--- a/config/config.go
+++ b/config/config.go
@@ -9,7 +9,7 @@ import (
 	"path/filepath"
 
 	u "github.com/jbenet/go-ipfs/util"
-	errors "github.com/jbenet/go-ipfs/util/debugerror"
+	errors "github.com/jbenet/go-ipfs/util/errors"
 )
 
 var log = u.Logger("config")
diff --git a/util/debugerror/debugerror.go b/util/errors/debug.go
similarity index 85%
rename from util/debugerror/debugerror.go
rename to util/errors/debug.go
index 2b6370f98..176d33b11 100644
--- a/util/debugerror/debugerror.go
+++ b/util/errors/debug.go
@@ -1,6 +1,6 @@
-// package debugerror provides a way to augment errors with additional
+// package errors provides ways to augment errors with additional
 // information to allow for easier debugging.
-package debugerror
+package errors
 
 import (
 	"errors"
-- 
GitLab