Use 'formatted-message' instead of '&message' where appropriate.
[jackhill/guix/guix.git] / guix / ui.scm
index 162eb35..420c968 100644 (file)
@@ -1796,9 +1796,7 @@ DURATION-RELATION with the current time."
          filter-by-duration)
         (else
          (raise
-          (condition (&message
-                      (message (format #f (G_ "invalid syntax: ~a~%")
-                                       str))))))))
+          (formatted-message (G_ "invalid syntax: ~a~%") str)))))
 
 (define (display-generation profile number)
   "Display a one-line summary of generation NUMBER of PROFILE."