Skip to content

Commit 9d92492

Browse files
authored
Merge pull request #5 from aserto-dev/mitza/add_err_unknown
add Unknown error
2 parents 1a0e5ee + 03e6e1f commit 9d92492

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

errors.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package errors
33
import (
44
"fmt"
55
"io"
6+
"net/http"
67
"strconv"
78
"strings"
89
"time"
@@ -19,6 +20,8 @@ const (
1920
)
2021

2122
var (
23+
ErrUnknown = NewAsertoError("E00000", codes.Internal, http.StatusInternalServerError, "an unknown error has occurred")
24+
2225
asertoErrors = make(map[string]*AsertoError)
2326
)
2427

0 commit comments

Comments
 (0)