ref: refs/heads/master
commit 281400bda46eb8483cdeb35550895bf16110b94d
Author: Josef Reidinger
Date: Tue Aug 4 10:04:22 2009 +0200
Write success message also if time is moved to future
---
.../app/controllers/system_time_controller.rb | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/plugins/systemtime/app/controllers/system_time_controller.rb b/plugins/systemtime/app/controllers/system_time_controller.rb
index c51a794..738ec0e 100644
--- a/plugins/systemtime/app/controllers/system_time_controller.rb
+++ b/plugins/systemtime/app/controllers/system_time_controller.rb
@@ -92,7 +92,8 @@ class SystemTimeController < ApplicationController
flash[:notice] = _('Settings have been written.')
rescue Timeout::Error => e
#do nothing as if you move time to future it throws this exception
- log.debug "Time moved to future"
+ log.debug "Time moved to future"
+ flash[:notice] = _('Settings have been written.')
rescue ActiveResource::ClientError => e
flash[:error] = YaST::ServiceResource.error(e)
ExceptionLogger.log_exception e
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org