Skip to content

Commit

Permalink
vnc: drop QERR_VNC_SERVER_FAILED
Browse files Browse the repository at this point in the history
We now always return "nice" error messages in errp when we goto fail.
Drop the default error message.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
bonzini committed Oct 23, 2012
1 parent 5889966 commit 3f8b11b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions qerror.h
Expand Up @@ -237,9 +237,6 @@ void assert_no_error(Error *err);
#define QERR_VIRTFS_FEATURE_BLOCKS_MIGRATION \
ERROR_CLASS_GENERIC_ERROR, "Migration is disabled when VirtFS export path '%s' is mounted in the guest using mount_tag '%s'"

#define QERR_VNC_SERVER_FAILED \
ERROR_CLASS_GENERIC_ERROR, "Could not start VNC server on %s"

#define QERR_SOCKET_CONNECT_FAILED \
ERROR_CLASS_GENERIC_ERROR, "Failed to connect to socket"

Expand Down
3 changes: 0 additions & 3 deletions ui/vnc.c
Expand Up @@ -3088,9 +3088,6 @@ void vnc_display_open(DisplayState *ds, const char *display, Error **errp)
return;

fail:
if (!error_is_set(errp)) {
error_set(errp, QERR_VNC_SERVER_FAILED, display);
}
g_free(vs->display);
vs->display = NULL;
}
Expand Down

0 comments on commit 3f8b11b

Please sign in to comment.