Skip to content

Commit

Permalink
curl: Replaced old error handling with error reporting API.
Browse files Browse the repository at this point in the history
Signed-off-by: Maria Kustova <maria.k@catit.be>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
  • Loading branch information
Maria Kustova authored and kevmw committed Apr 22, 2014
1 parent b8afb52 commit acd7fdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/curl.c
Expand Up @@ -543,7 +543,7 @@ static int curl_open(BlockDriverState *bs, QDict *options, int flags,
return 0;

out:
fprintf(stderr, "CURL: Error opening file: %s\n", state->errmsg);
error_setg(errp, "CURL: Error opening file: %s", state->errmsg);
curl_easy_cleanup(state->curl);
state->curl = NULL;
out_noclean:
Expand Down

0 comments on commit acd7fdc

Please sign in to comment.