mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-08 22:39:56 +00:00
gendispatch: Use proper error for limit checking
All other places use VIR_ERR_RPC except this one, let's be consistent, shall we? Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
9d479dd185
commit
eeb1e6fe9f
@ -951,7 +951,7 @@ elsif ($mode eq "server") {
|
|||||||
|
|
||||||
if ($single_ret_as_list) {
|
if ($single_ret_as_list) {
|
||||||
print " if (args->$single_ret_list_max_var > $single_ret_list_max_define) {\n";
|
print " if (args->$single_ret_list_max_var > $single_ret_list_max_define) {\n";
|
||||||
print " virReportError(VIR_ERR_INTERNAL_ERROR,\n";
|
print " virReportError(VIR_ERR_RPC,\n";
|
||||||
print " \"%s\", _(\"max$single_ret_list_name > $single_ret_list_max_define\"));\n";
|
print " \"%s\", _(\"max$single_ret_list_name > $single_ret_list_max_define\"));\n";
|
||||||
print " goto cleanup;\n";
|
print " goto cleanup;\n";
|
||||||
print " }\n";
|
print " }\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user