[rygel/wip/basic-management: 135/138] core: BasicManagement: Add test state description to error messages
- From: Jussi Kukkonen <jussik src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel/wip/basic-management: 135/138] core: BasicManagement: Add test state description to error messages
- Date: Tue, 10 Sep 2013 07:33:02 +0000 (UTC)
commit bc8cd9d1a79e5898809f445182556ecd7b9af330
Author: Jussi Kukkonen <jussi kukkonen intel com>
Date: Mon Jun 24 13:46:32 2013 +0300
core: BasicManagement: Add test state description to error messages
src/librygel-core/rygel-basic-management.vala | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/librygel-core/rygel-basic-management.vala b/src/librygel-core/rygel-basic-management.vala
index da6f3fd..74e33db 100644
--- a/src/librygel-core/rygel-basic-management.vala
+++ b/src/librygel-core/rygel-basic-management.vala
@@ -182,12 +182,14 @@ public class Rygel.BasicManagement : Service {
(action.get_name() == "GetNSLookupResult") ||
(action.get_name() == "GetTracerouteResult"))) {
/// TestID is valid but the test Results are not available
- action.return_error (708, _("Invalid Test State"));
+ action.return_error (708, _("Invalid Test State '%s'").printf (
+ bm_test.execution_state.to_string()));
return false;
} else if ((action.get_name() == "CancelTest") && !bm_test.is_active()) {
/// TestID is valid but the test can't be canceled
- action.return_error (709, _("State Precludes Cancel"));
+ action.return_error (709, _("State '%s' Precludes Cancel").printf (
+ bm_test.execution_state.to_string ()));
return false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]