Skip to content

Make error when submitting command in incorrect context more explicit#6775

Merged
antirez merged 1 commit intoredis:unstablefrom
SqREL:make-error-of-invalid-command-withing-context-explicit
Jan 15, 2020
Merged

Make error when submitting command in incorrect context more explicit#6775
antirez merged 1 commit intoredis:unstablefrom
SqREL:make-error-of-invalid-command-withing-context-explicit

Conversation

@SqREL
Copy link

@SqREL SqREL commented Jan 13, 2020

Adding useful details for an error message when client submitting command in context, that only limited scope of commands.

An opened issue: https://github.com/antirez/redis/issues/6770

Error message
ERR only (P)SUBSCRIBE / (P)UNSUBSCRIBE / PING / QUIT allowed in this context
will become
ERR 'get' command submitted, but only (P)SUBSCRIBE / (P)UNSUBSCRIBE / PING / QUIT allowed in this context

So error message `ERR only (P)SUBSCRIBE / (P)UNSUBSCRIBE / PING / QUIT allowed in this context` will become
`ERR 'get' command submitted, but only (P)SUBSCRIBE / (P)UNSUBSCRIBE / PING / QUIT allowed in this context`
@antirez antirez merged commit 456bbc0 into redis:unstable Jan 15, 2020
antirez added a commit that referenced this pull request Jan 15, 2020
@antirez
Copy link
Contributor

antirez commented Jan 15, 2020

Thanks @SqREL

antirez added a commit that referenced this pull request Feb 4, 2020
JackieXie168 pushed a commit to JackieXie168/redis that referenced this pull request Feb 20, 2020
…d-withing-context-explicit

Make error when submitting command in incorrect context more explicit
JackieXie168 pushed a commit to JackieXie168/redis that referenced this pull request Feb 20, 2020
kasiawasiuta pushed a commit to kasiawasiuta/redis that referenced this pull request Mar 11, 2020
jschmieg pushed a commit to jschmieg/redis that referenced this pull request Mar 23, 2020
jschmieg pushed a commit to jschmieg/redis that referenced this pull request Mar 24, 2020
jschmieg pushed a commit to pmem/redis that referenced this pull request Mar 24, 2020
jschmieg pushed a commit to pmem/redis that referenced this pull request Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants