Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
Improved error message formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
oubiwann committed Apr 9, 2016
1 parent 567f8f3 commit e565958
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sample-app-routes.lfe
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
;; When nothing matches, do this
('NOTFOUND
(let* ((joined-path (++ "/" (string:join path "/")))
(msg (++ "Unmatched route!~n~n"
"Path-info: ~p~n"
"joined path: ~p~n"
"arg-data: ~p~n~n"))
(msg (++ "Unmatched route!~n"
"\tPath info: ~p~n"
"\tJoined path: ~p~n"
"\tArg data: ~p"))
(msg-args `(,path ,joined-path ,arg-data)))
(logjam:error msg msg-args)
(sample-app-content:four-oh-four
Expand Down

0 comments on commit e565958

Please sign in to comment.