]> xenbits.xensource.com Git - libvirt.git/commitdiff
snapshot: Improve message for VIR_ERR_INVALID_DOMAIN_SNAPSHOT
authorEric Blake <eblake@redhat.com>
Mon, 25 Feb 2019 16:37:58 +0000 (10:37 -0600)
committerEric Blake <eblake@redhat.com>
Wed, 27 Feb 2019 20:21:10 +0000 (14:21 -0600)
For consistency with other error messages, and the fact that
the object is always called a virDomainSnapshot rather than
a mere virSnapshot, include the word "domain" in the error
message.

Suggested-by: John Ferlan <jferlan@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/util/virerror.c

index 63de0cb2781c41d92d34d1ad7f30a9f7bbc7527c..91a513160fa6ad54f8fe1c854f5fa32e02b8ae4a 100644 (file)
@@ -1122,8 +1122,8 @@ const virErrorMsgTuple virErrorMsgStrings[VIR_ERR_NUMBER_LAST] = {
         N_("Hook script execution failed"),
         N_("Hook script execution failed: %s") },
     [VIR_ERR_INVALID_DOMAIN_SNAPSHOT] = {
-        N_("Invalid snapshot"),
-        N_("Invalid snapshot: %s") },
+        N_("Invalid domain snapshot"),
+        N_("Invalid domain snapshot: %s") },
     [VIR_ERR_NO_DOMAIN_SNAPSHOT] = {
         N_("Domain snapshot not found"),
         N_("Domain snapshot not found: %s") },