Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

Commit

Permalink
chore: add internal error log
Browse files Browse the repository at this point in the history
  • Loading branch information
rot1024 committed Aug 9, 2021
1 parent 8a64591 commit 41c3771
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/rerror/error.go
Expand Up @@ -4,6 +4,7 @@ import (
"fmt"

"github.com/pkg/errors"
"github.com/reearth/reearth-backend/pkg/log"
)

var (
Expand All @@ -22,6 +23,7 @@ type ErrInternal struct {
}

func ErrInternalBy(err error) error {
log.Errorf("internal error: %s", err.Error())
return &ErrInternal{
err: Error{
Label: errInternal,
Expand Down

0 comments on commit 41c3771

Please sign in to comment.