Loading block.c +7 −2 Original line number Diff line number Diff line Loading @@ -1262,11 +1262,16 @@ static QDict *parse_json_filename(const char *filename, Error **errp) ret = strstart(filename, "json:", &filename); assert(ret); options_obj = qobject_from_json(filename, NULL); options_obj = qobject_from_json(filename, errp); if (!options_obj) { /* Work around qobject_from_json() lossage TODO fix that */ if (errp && !*errp) { error_setg(errp, "Could not parse the JSON options"); return NULL; } error_prepend(errp, "Could not parse the JSON options: "); return NULL; } options = qobject_to_qdict(options_obj); if (!options) { Loading Loading
block.c +7 −2 Original line number Diff line number Diff line Loading @@ -1262,11 +1262,16 @@ static QDict *parse_json_filename(const char *filename, Error **errp) ret = strstart(filename, "json:", &filename); assert(ret); options_obj = qobject_from_json(filename, NULL); options_obj = qobject_from_json(filename, errp); if (!options_obj) { /* Work around qobject_from_json() lossage TODO fix that */ if (errp && !*errp) { error_setg(errp, "Could not parse the JSON options"); return NULL; } error_prepend(errp, "Could not parse the JSON options: "); return NULL; } options = qobject_to_qdict(options_obj); if (!options) { Loading