]> git.donarmstrong.com Git - lilypond.git/blobdiff - python/book_snippets.py
Fix the linking of files from lilypond by lilypond-book.
[lilypond.git] / python / book_snippets.py
index e8fbd50317d4ca0e094b45129ba9e28f91c775af..f3a11ccca94fa97d5967fb286de53290ab1e604f 100644 (file)
@@ -621,7 +621,7 @@ printing diff against existing file." % filename)
     def link_all_output_files (self, output_dir, output_dir_files, destination):
         existing, missing = self.all_output_files (output_dir, output_dir_files)
         if missing:
-            print '\nMissing', missing
+            error (_ ('Missing files: %s') % ', '.join (missing))
             raise CompileError(self.basename())
         for name in existing:
             if (self.global_options.use_source_file_names
@@ -651,7 +651,7 @@ printing diff against existing file." % filename)
             except AttributeError:
                 shutil.copyfile (src, dst)
             except OSError:
-                print '\nCould not overwrite file', dst
+                error (_ ('Could not overwrite file %s') % dst)
                 raise CompileError(self.basename())
 
     def additional_files_to_consider (self, base, full):