Author: jdsn Date: Wed May 19 18:11:10 2010 New Revision: 62042 URL: http://svn.opensuse.org/viewcvs/yast?rev=62042&view=rev Log: - catch severe backend error and pass error message on (bnc#604777) - 2.19.3 Modified: trunk/registration/VERSION trunk/registration/package/yast2-registration.changes trunk/registration/src/modules/YSR.pm Modified: trunk/registration/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/registration/VERSION?rev=62042&r1=62041&r2=62042&view=diff ============================================================================== --- trunk/registration/VERSION (original) +++ trunk/registration/VERSION Wed May 19 18:11:10 2010 @@ -1 +1 @@ -2.19.2 +2.19.3 Modified: trunk/registration/package/yast2-registration.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/registration/package/yast2-registration.changes?rev=62042&r1=62041&r2=62042&view=diff ============================================================================== --- trunk/registration/package/yast2-registration.changes (original) +++ trunk/registration/package/yast2-registration.changes Wed May 19 18:11:10 2010 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Wed May 19 18:10:23 CEST 2010 - jdsn@suse.de + +- catch severe backend error and pass error message on (bnc#604777) +- 2.19.3 + +------------------------------------------------------------------- Wed Apr 28 20:59:51 CEST 2010 - jdsn@suse.de - split off online-update-configuration module (fate#308494) Modified: trunk/registration/src/modules/YSR.pm URL: http://svn.opensuse.org/viewcvs/yast/trunk/registration/src/modules/YSR.pm?rev=62042&r1=62041&r2=62042&view=diff ============================================================================== --- trunk/registration/src/modules/YSR.pm (original) +++ trunk/registration/src/modules/YSR.pm Wed May 19 18:11:10 2010 @@ -298,6 +298,12 @@ # to be on the safe side for a following registration request, we need to delete the context data $self->del_ctx(); } + elsif ( $exitcode == 2 ) # catch error 2 and send error message up one layer (bnc#604777) + { + ${$regret}{'error'} = 'Registration did not succeed due to invalid data.'; + ${$regret}{'invaliddataerror'} = '1'; + ${$regret}{'invaliddataerrormessage'} = $self->get_errormsg(); + } elsif ( $exitcode == 3 ) { ${$regret}{'error'} = 'Conflicting registration data'; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org