Skip to content

Commit 62968a4

Browse files
committed
Reorder functions
1 parent cfdfc25 commit 62968a4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/errors.janet

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
:file-error 3
1111
:parse-error 4})
1212

13+
(defn format-command-errors [command errors]
14+
(map (fn [error] (string command " " (string/ascii-lower error) ".")) errors))
15+
1316
(defn print-errors [errors exit-status-code]
1417
(each error errors (print (string error ".")))
1518
(os/exit exit-status-code))
16-
17-
(defn format-command-errors [command errors]
18-
(map (fn [error] (string command " " (string/ascii-lower error) ".")) errors))

0 commit comments

Comments
 (0)