if (hypervAddSimpleParam(params, "keyCode", keycodeStr) < 0)
goto cleanup;
- if (hypervInvokeMethod(priv, ¶ms, NULL) < 0) {
- virReportError(VIR_ERR_INTERNAL_ERROR, _("Could not press key %d"),
- translatedKeycodes[i]);
+ if (hypervInvokeMethod(priv, ¶ms, NULL) < 0)
goto cleanup;
- }
}
/* simulate holdtime by sleeping */
if (hypervAddSimpleParam(params, "keyCode", keycodeStr) < 0)
goto cleanup;
- if (hypervInvokeMethod(priv, ¶ms, NULL) < 0) {
- virReportError(VIR_ERR_INTERNAL_ERROR,
- _("Could not release key %s"), keycodeStr);
+ if (hypervInvokeMethod(priv, ¶ms, NULL) < 0)
goto cleanup;
- }
}
result = 0;
}
}
- if (hypervInvokeMethod(priv, ¶ms, NULL) < 0) {
- virReportError(VIR_ERR_INTERNAL_ERROR, "%s", _("Could not set memory"));
+ if (hypervInvokeMethod(priv, ¶ms, NULL) < 0)
goto cleanup;
- }
result = 0;