feat(baseapp)!: Indicate pruning with "not found" rather than "invalid request" (#19993)
This commit is contained in:
+1
-1
@@ -1242,7 +1242,7 @@ func (app *BaseApp) CreateQueryContext(height int64, prove bool) (sdk.Context, e
|
||||
if err != nil {
|
||||
return sdk.Context{},
|
||||
errorsmod.Wrapf(
|
||||
sdkerrors.ErrInvalidRequest,
|
||||
sdkerrors.ErrNotFound,
|
||||
"failed to load state at height %d; %s (latest height: %d)", height, err, lastBlockHeight,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user