mirror of
https://github.com/kataras/iris.git
synced 2025-12-23 21:07:03 +00:00
Upgrade to new go errors and some minor fixes and improvements including easier debugging of invalid routes and e.t.c.
Former-commit-id: 5809157b952ccc61a67a9861470774b3a6fee024
This commit is contained in:
@@ -2,12 +2,12 @@ package badger
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"errors"
|
||||
"os"
|
||||
"runtime"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"github.com/kataras/iris/core/errors"
|
||||
"github.com/kataras/iris/sessions"
|
||||
|
||||
"github.com/dgraph-io/badger"
|
||||
@@ -47,7 +47,7 @@ var _ sessions.Database = (*Database)(nil)
|
||||
// It will remove any old session files.
|
||||
func New(directoryPath string) (*Database, error) {
|
||||
if directoryPath == "" {
|
||||
return nil, errors.New("directoryPath is missing")
|
||||
return nil, errors.New("directoryPath is empty")
|
||||
}
|
||||
|
||||
lindex := directoryPath[len(directoryPath)-1]
|
||||
|
||||
Reference in New Issue
Block a user