diff --git a/src/index.js b/src/index.js
index <HASH>..<HASH> 100644
--- a/src/index.js
+++ b/src/index.js
@@ -213,11 +213,11 @@ class IpfsRepo {
       (err, res) => {
         log('init', err, res)
         if (err) {
-          return callback(err)
-        }
-
-        if (!res.config) {
-          return callback(new Error('repo is not initialized yet'))
+          return callback(Object.assign(new Error('repo is not initialized yet'),
+            {
+              code: 'ERR_REPO_NOT_INITIALIZED',
+              path: this.path
+            }))
         }
         callback()
       }
feat: add uniform error to isInitialized

 _isInitialized is used in several other repos to check the repo even being a pseudo private method
the error should be uniform for easier handling and not whatever  this.config.exists(cb) or this.version.check(repoVersion, cb) returns on error