Permalink
Browse files

'cause' should be an argument to Exception, not throw

  • Loading branch information...
1 parent f625a26 commit fb37049ae6d1a55d68ed003452052b40c2c99240 @ohpauleez ohpauleez committed Jun 16, 2016
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/shoreleave/middleware/rpc.clj
@@ -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))

0 comments on commit fb37049

Please sign in to comment.