Skip to content

Commit

Permalink
Log tailwind command in case of failure
Browse files Browse the repository at this point in the history
  • Loading branch information
zampino committed Jul 26, 2023
1 parent 0dadd30 commit 3ee2472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nextjournal/clerk/builder.clj
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@
(println err)
(println out)
(when-not (zero? exit)
(throw (ex-info (str "Clerk build! failed\n" out "\n" err "\nensure tailwindcss is properly installed via `npm install -D tailwindcss @tailwindcss/typography` and try again.") ret))))
(throw (ex-info (str "Clerk build! failed\n" out "\n" err "\ntailwind command: " tw-command "'.\n\nEnsure tailwindcss is properly installed via `npm install -D tailwindcss @tailwindcss/typography` and try again.") ret))))
(let [url (viewer/store+get-cas-url! (assoc opts :ext "css") (fs/read-all-bytes tw-output))]
(fs/delete-tree tw-folder)
(update opts :resource->url assoc "/css/viewer.css" url))))
Expand Down

0 comments on commit 3ee2472

Please sign in to comment.