Skip to content

Commit

Permalink
coreapi: var block for errors
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
  • Loading branch information
magik6k committed Mar 10, 2018
1 parent fa0fef3 commit e54a4f8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/coreapi/interface/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ package iface

import "errors"

var ErrIsDir = errors.New("object is a directory")
var ErrOffline = errors.New("can't resolve, ipfs node is offline")
var (
ErrIsDir = errors.New("object is a directory")
ErrOffline = errors.New("can't resolve, ipfs node is offline")
)

0 comments on commit e54a4f8

Please sign in to comment.