~ubuntu-core-dev/update-notifier/ubuntu

« back to all changes in this revision

Viewing changes to src/update.c

  • Committer: Michael Vogt
  • Date: 2006-04-10 10:34:16 UTC
  • Revision ID: michael.vogt@ubuntu.com-20060410103416-285e0f653de8eb63
* report errors from apt-check to the frontend

Show diffs side-by-side

added added

removed removed

Lines of Context:
283
283
                   &exit_status, &error)) {
284
284
      // read the value from childs stderr, E: indicates a problem
285
285
      if(ret[0] == 'E') {
 
286
         gchar *error;
 
287
         if(strlen(ret) > 3) 
 
288
            error = g_strdup_printf(_("A error occured, please run "
 
289
                                      "Package Manager from the "
 
290
                                      "right-click menu or apt-get on "
 
291
                                      "a terminal to see what is wrong.\n"
 
292
                                      "The error message was: '%s'"),
 
293
                                    &ret[2]);
 
294
         else
 
295
            error = g_strdup_printf(_("A error occured, please run "
 
296
                                      "Package Manager from the "
 
297
                                      "right-click menu or apt-get on "
 
298
                                      "a terminal to see what is wrong."));
286
299
         gtk_tooltips_set_tip(GTK_TOOLTIPS(ta->tooltip), 
287
 
                              GTK_WIDGET (ta->eventbox), 
288
 
                              _("A error occured, please run Package Manager "
289
 
                                "from the right-click menu or "
290
 
                                "apt-get on a terminal to see what is wrong"),
 
300
                              GTK_WIDGET (ta->eventbox), error,
291
301
                              _("This usually means that your installed "
292
302
                                "packages have unmet dependencies"));
293
303
         gtk_widget_show(GTK_WIDGET(ta->tray_icon));