]> git.donarmstrong.com Git - lilypond.git/commitdiff
Warnings: Turn some normal messages into warnings
authorReinhold Kainhofer <reinhold@kainhofer.com>
Sat, 17 Sep 2011 23:38:19 +0000 (01:38 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Sun, 18 Sep 2011 00:04:17 +0000 (02:04 +0200)
scm/backend-library.scm
scm/lily.scm
scm/ps-to-png.scm

index b58d8aca89ef4382f967463f82e5f67366597799..7ae9afd5d3a3e55e0baf34c042684fc99849cf5e 100644 (file)
@@ -28,8 +28,7 @@
   (let ((status (apply ly:spawn command)))
     (if (> status 0)
        (begin
-         (ly:message (_ "`~a' failed (~a)") command status)
-         (ly:progress "\n")
+         (ly:warning (_ "`~a' failed (~a)\n") command status)
          ;; hmmm.  what's the best failure option? 
          (throw 'ly-file-failed)))))
 
@@ -88,8 +87,7 @@
               "-c.setpdfwrite"
               (string-append "-f" name)))))
 
-    (ly:message (_ "Converting to `~a'...") pdf-name)
-    (ly:progress "\n")
+    (ly:progress (_ "Converting to `~a'...\n") pdf-name)
     (ly:system cmd)))
 
 (define-public (postscript->png resolution paper-width paper-height name)
@@ -98,7 +96,7 @@
 
     ;; Do not try to guess the name of the png file,
     ;; GS produces PNG files like BASE-page%d.png.
-    (ly:message (_ "Converting to ~a...") "PNG")
+    (ly:progress (_ "Converting to ~a...") "PNG")
     (make-ps-images name
                    #:resolution resolution
                    #:page-width paper-width
index bbea5afab996462f9eedb9a6ee3613f65581ce5a..ac735bc4893322d1318ba88fbeb403e3471fc029 100644 (file)
@@ -348,11 +348,10 @@ Print a message at LOCATION if any predicate failed."
     (define (helper pred? arg count)
       (if (not (pred? arg))
           (begin
-            (ly:input-message
+            (ly:input-warning
              location
-             (format
-              #f (_ "wrong type for argument ~a.  Expecting ~a, found ~s")
-              count (type-name pred?) arg))
+             (_ "wrong type for argument ~a.  Expecting ~a, found ~s")
+              count (type-name pred?) arg)
             #f)
           #t))
 
index caffb9aeda8d3dd717d607917684cddaf9a009b6..936217f184c1e8db81783b86d344eb34a973f5a3 100644 (file)
 ;; copy of ly:system. ly:* not available via lilypond-ps2png.scm
 (define (my-system be-verbose exit-on-error cmd)
   (define status 0)
-  (if be-verbose
-      (begin
-       (format (current-error-port) (_ "Invoking `~a'...") cmd)
-       (newline (current-error-port))))
+  (ly:debug (_ "Invoking `~a'...\n") cmd)
   (set! status (system cmd))
   (if (not (= status 0))
       (begin
-       (format (current-error-port)
-               (format #f (_ "~a exited with status: ~S") "GS" status))
+       (ly:error (_ "~a exited with status: ~S") "GS" status)
        (if exit-on-error (exit 1))))
   status)