diff --git a/gnu/packages/javascript.scm b/gnu/packages/javascript.scm index 8731a44927..e7dcd7962d 100644 --- a/gnu/packages/javascript.scm +++ b/gnu/packages/javascript.scm @@ -117,7 +117,11 @@ (define-public js-mathjax (let ((minified (open-pipe* OPEN_READ "uglify-js" file))) (call-with-output-file installed (lambda (port) - (dump-port minified port))))) + (dump-port minified port))) + + (let ((exit (close-pipe minified))) + (unless (zero? exit) + (error "dear, uglify-js failed" exit))))) (else (install-file file (dirname installed)))))) (find-files "."))