]> xenbits.xensource.com Git - libvirt.git/commitdiff
gendispatch: Use proper error for limit checking
authorMartin Kletzander <mkletzan@redhat.com>
Thu, 10 Mar 2016 14:25:52 +0000 (15:25 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Fri, 11 Mar 2016 11:58:41 +0000 (12:58 +0100)
All other places use VIR_ERR_RPC except this one, let's be consistent,
shall we?

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/rpc/gendispatch.pl

index 6c3ded4a1e9ce7ed2c201f6b739b5fafb6b65e33..fc8423a6b621d0875ea0538786229b019c0aa855 100755 (executable)
@@ -951,7 +951,7 @@ elsif ($mode eq "server") {
 
         if ($single_ret_as_list) {
             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 "        goto cleanup;\n";
             print "    }\n";