virDomainMomentObjPtr moment;
if (virHashLookup(moments->objs, def->name) != NULL) {
- virReportError(VIR_ERR_INTERNAL_ERROR,
- _("unexpected domain moment %s already exists"),
+ virReportError(VIR_ERR_OPERATION_FAILED,
+ _("domain moment %s already exists"),
def->name);
return NULL;
}
# Create a series of snapshots, with names that intentionally sort
# differently by topology than by name. Use revert to create fanout.
snapshot-create-as test s1
+ snapshot-create-as test s1
snapshot-create-as test s3
snapshot-create-as test s2
snapshot-revert test s3
cat <<\EOF > exp || fail=1
Domain snapshot s1 created
+
Domain snapshot s3 created
Domain snapshot s2 created
compare exp out.cooked || fail=1
cat <<EOF > exp || fail=1
+error: operation failed: domain moment s1 already exists
error: marker
error: domain 'test' has no current snapshot
error: marker