Skip to content

Commit

Permalink
use constant
Browse files Browse the repository at this point in the history
  • Loading branch information
sgueissa committed Jun 12, 2024
1 parent d67f77c commit c197318
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion be1-go/internal/hub/hub.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func (h *Hub) runMessageReceiver() {
if err != nil {
popError := &poperrors.PopError{}
if !errors.As(err, &popError) {
popError = poperrors.NewPopError(-6, err.Error())
popError = poperrors.NewPopError(poperrors.InternalServerErrorCode, err.Error())
}

stack, err := popError.GetStackTraceJSON()
Expand Down
2 changes: 1 addition & 1 deletion be1-go/internal/network/socket/socket_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ func (s *baseSocket) SendPopError(id *int, err error) {
popError := &poperror.PopError{}

if !errors.As(err, &popError) {
popError = poperror.NewPopError(-6, err.Error())
popError = poperror.NewPopError(poperror.InternalServerErrorCode, err.Error())
}

description := popError.Error() + "\n" + popError.StackTraceString()
Expand Down

0 comments on commit c197318

Please sign in to comment.