Re: ClojureScript: catching all javascript exceptions

2012-11-01 Thread Frank Siebenlist
Thanks Steve - exactly what I needed - cool stuff. On Nov 1, 2012, at 3:06 AM, Steve Buikhuizen wrote: > No problem. On the client (cljs) you should: > • require [goog.debug.ErrorReporter :as reporter] > • (reporter/install "/er") > On the server (I'm using Noir which supplies defpa

Re: reduce, reduce-kv, map, mapv, reducers/map and nil

2012-11-01 Thread Alan Busby
On Thu, Nov 1, 2012 at 8:27 PM, Wolodja Wentland wrote: > It seems to me as if we are currently figuring out which (boilerplate?) > functions are missing in reducers.clj and that we will have a nice and > well-integrated library at the end. To be fair, it's in beta and it's open source; so if any

Re: reduce, reduce-kv, map, mapv, reducers/map and nil

2012-11-01 Thread Wolodja Wentland
On Thu, Nov 01, 2012 at 15:11 +0900, Alan Busby wrote: > On Mon, Oct 29, 2012 at 10:00 PM, Wolodja Wentland wrote: > > I find this behaviour quite unfortunate because I now have to explicitly > > test > > for nil? and ensure consistent behaviour. This inconsistency violates the > > principle of l

Re: ClojureScript: catching all javascript exceptions

2012-11-01 Thread Hubert Iwaniuk
In past I used (goog.debug.ErrorReporter/install"logError") It worked great. HTH, Hubert. Steve Buikhuizen wrote: No problem. On the client (cljs) you should: 1. require [goog.debug.ErrorReporter :as reporter] 2. (reporter/install"/er") On the server (I'm using Noir which supplies defpage)

Re: ClojureScript: catching all javascript exceptions

2012-11-01 Thread Steve Buikhuizen
No problem. On the client (cljs) you should: 1. require [goog.debug.ErrorReporter :as reporter] 2. (reporter/install "/er") On the server (I'm using Noir which supplies defpage) (defpage [:post "/er"] {:keys [error line script trace]} (service/record-client-error error line script tr