Skip to content

Commit

Permalink
Have the plugin exit on errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernd Wachter committed Mar 19, 2013
1 parent e794d8c commit fb7e32a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ssuurlresolver/ssuurlresolver.cpp
Expand Up @@ -90,6 +90,14 @@ void SsuUrlResolver::run(){
connect(&ssu, SIGNAL(done()), &w, SLOT(finished()));
ssu.updateCredentials();
w.sleep();

// error can be found in ssu.log, so just exit
// TODO: figure out if there's better eror handling for
// zypper plugins than 'blow up'
if (ssu.error()){
emit done();
return;
}
} else
ssu.printJournal(LOG_DEBUG, "No RnD repository, and device not registered -- skipping credential update");

Expand Down

0 comments on commit fb7e32a

Please sign in to comment.