juxt / jig

Jig is an application harness providing a beautifully interactive development experience for Clojure projects.
229 stars 19 forks source link

Meaningful error messages when lifecycle functions return something other than system #12

Open michaelklishin opened 10 years ago

michaelklishin commented 10 years ago

When a lifecycle function (e.g. start) returns something other than system by mistake, you get really obscure exceptions from Jig runner.

It should validate the returned value and complain if it is not what's expected.

malcolmsparks commented 10 years ago

Yes, that's a problem that's bitten a few people, including myself a few times. The solution may be to have start return a value, rather than the system, and limit access to the system map.

On 27 January 2014 20:27, Michael Klishin notifications@github.com wrote:

When a lifecycle function (e.g. start) returns something other than systemby mistake, you get really obscure exceptions from Jig runner.

It should validate the returned value and complain if it is not what's expected.

— Reply to this email directly or view it on GitHubhttps://github.com/juxt/jig/issues/12 .