Commits

Anonymous committed a852aba

l10nnewlangs: #i115677# Write error to stderr, single / multi process error msg fix

  • Participants
  • Parent commits 2c70ae7

Comments (0)

Files changed (1)

solenv/bin/build.pl

         $error_code = run_job($dmake, $job_name);
         html_store_job_info(\%local_deps_hash, $job_name, $error_code) if (!$child);
     };
+    
     if ($error_code && $ignore) {
         push(@ignored_errors, $job_name);
         $error_code = 0;
         };
         _exit(0);
     } elsif ($error_code && ($error_code != -1)) {
+        $broken_build{$job_name} = $error_code if (!$processes_to_run && $error_code);
         return $error_code;
     };
 };
 
     };
     if ($broken_modules_number && $build_all_parents) {
-        print "\n";
-        print $broken_modules_number;
-        print " module(s): ";
+        print STDERR "\n";
+        print STDERR $broken_modules_number;
+        print STDERR " module(s): ";
         foreach (@broken_module_names) {
-            print "\n\t$_";
+            print STDERR "\n\t$_";
         };
-        print "\nneed(s) to be rebuilt\n\nReason(s):\n\n";
+        print STDERR "\nneed(s) to be rebuilt\n\nReason(s):\n\n";
         foreach (keys %broken_build) {
-            print "ERROR: error " . $broken_build{$_} . " occurred while making $_\n";
+            print STDERR "ERROR: error " . $broken_build{$_} . " occurred while making $_\n";
         };
-        print "\nAttention: if you fix the errors in above module(s) you may prolongue your the build issuing command:\n\n\t" . $message_part;
+        print STDERR "\nAttention: if you fix the errors in above module(s) you may prolongue your the build issuing command:\n\n\t" . $message_part;
     } else {
         while (children_number()) {
             handle_dead_children(1);
         }
         foreach (keys %broken_build) {
-            print "ERROR: error " . $broken_build{$_} . " occurred while making $_\n";
+            print STDERR "ERROR: error " . $broken_build{$_} . " occurred while making $_\n";
         };
     };
     print "\n";
         };
         if ($error_code) {
             $modules_with_errors{$dependencies_hash}++;
-            $broken_build{$module} = $error_code;
+#            $broken_build{$module_job} = $error_code;
         } else {
             remove_from_dependencies($module_job, $dependencies_hash);
         };