From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: Amit Shah <amit.shah@redhat.com>
Cc: quintela@redhat.com, qemu-devel@nongnu.org, armbru@redhat.com
Subject: Re: [Qemu-devel] [PATCH 3/3] migrate_incoming: Cleanup/clarify error messages
Date: Mon, 2 Mar 2015 08:47:46 +0000 [thread overview]
Message-ID: <20150302084746.GA2292@work-vm> (raw)
In-Reply-To: <20150302063257.GH26196@grmbl.mre>
* Amit Shah (amit.shah@redhat.com) wrote:
> On (Thu) 26 Feb 2015 [14:54:41], Dr. David Alan Gilbert (git) wrote:
> > From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
> >
> > Create a separate error for the case where migrate_incoming is
> > used after a succesful migrate_incoming.
> >
> > Reword the error in the case where '-incoming defer' is missing
> > to omit the command name so it's right for both hmp and qmp.
> >
> > Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
> > ---
> > migration/migration.c | 8 ++++++--
> > 1 file changed, 6 insertions(+), 2 deletions(-)
> >
> > diff --git a/migration/migration.c b/migration/migration.c
> > index 2c805f1..e6ac3de 100644
> > --- a/migration/migration.c
> > +++ b/migration/migration.c
> > @@ -435,11 +435,15 @@ void migrate_del_blocker(Error *reason)
> > void qmp_migrate_incoming(const char *uri, Error **errp)
> > {
> > Error *local_err = NULL;
> > + static bool once = true;
> >
> > if (!deferred_incoming) {
> > - error_setg(errp, "'-incoming defer' is required for migrate_incoming");
> > + error_setg(errp, "For use with '-incoming defer'");
> > return;
> > }
> > + if (!once) {
> > + error_setg(errp, "The incoming migration has already been started");
>
> Let me apologise in advance for picking on another error message...
>
> This reads like we already have an incoming migration, when we mean we
> just have a URI for one.
No, if you hit this error you have at least started listening on the connection.
Dave
>
> Amit
--
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
next prev parent reply other threads:[~2015-03-02 8:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-26 14:54 [Qemu-devel] [PATCH 0/3] migrate_incoming cleanups Dr. David Alan Gilbert (git)
2015-02-26 14:54 ` [Qemu-devel] [PATCH 1/3] migrate_incoming: use hmp_handle_error Dr. David Alan Gilbert (git)
2015-02-26 14:54 ` [Qemu-devel] [PATCH 2/3] Warn against the use of the string as uri parameter to migrate-incoming Dr. David Alan Gilbert (git)
2015-02-26 14:54 ` [Qemu-devel] [PATCH 3/3] migrate_incoming: Cleanup/clarify error messages Dr. David Alan Gilbert (git)
2015-03-02 6:32 ` Amit Shah
2015-03-02 8:47 ` Dr. David Alan Gilbert [this message]
2015-02-26 17:07 ` [Qemu-devel] [PATCH 0/3] migrate_incoming cleanups Markus Armbruster
2015-02-26 17:29 ` Eric Blake
2015-03-02 6:33 ` Amit Shah
2015-03-17 13:28 ` Juan Quintela
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150302084746.GA2292@work-vm \
--to=dgilbert@redhat.com \
--cc=amit.shah@redhat.com \
--cc=armbru@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.