Skip to content

Commit

Permalink
fixed error printing on handled legacy code (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
omerlavanet authored Mar 19, 2023
1 parent 6487ae6 commit 9f3738b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x/projects/keeper/project.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package keeper

import (
"fmt"
"strconv"

sdk "github.com/cosmos/cosmos-sdk/types"
Expand All @@ -23,7 +24,7 @@ func (k Keeper) GetProjectDeveloperData(ctx sdk.Context, developerKey string, bl
var projectDeveloperData types.ProtoDeveloperData
err, found := k.developerKeysFS.FindEntry(ctx, developerKey, blockHeight, &projectDeveloperData)
if err != nil || !found {
return types.ProtoDeveloperData{}, utils.LavaError(ctx, ctx.Logger(), "GetProjectIDForDeveloper_invalid_key", map[string]string{"developer": developerKey}, "the requesting key is not registered to a project")
return types.ProtoDeveloperData{}, fmt.Errorf("GetProjectIDForDeveloper_invalid_key, the requesting key is not registered to a project, developer: %s", developerKey)
}
return projectDeveloperData, nil
}
Expand Down

0 comments on commit 9f3738b

Please sign in to comment.