Skip to content

Commit

Permalink
'cause' should be an argument to Exception, not throw
Browse files Browse the repository at this point in the history
  • Loading branch information
ohpauleez committed Jun 16, 2016
1 parent f625a26 commit fb37049
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/shoreleave/middleware/rpc.clj
Expand Up @@ -43,8 +43,9 @@ metadata to the function name, e.g.:
(require namesp-sym)
(find-ns namesp-sym)
(catch Exception e
(throw (Exception. (str "Could not locate a namespace when aliasing remotes: " namesp-sym))
e)))
(throw (Exception.
(str "Could not locate a namespace when aliasing remotes: " namesp-sym)
e))))
public-fns (ns-publics namesp)]
(doseq [[fn-name fn-var] public-fns]
(when (fn? (var-get fn-var))
Expand Down

0 comments on commit fb37049

Please sign in to comment.