technomancy/leiningen — pull request #1470 by fredericksgary (2014-03-14 01:19:50+00:00)
Title: lein run: don't catch app errors as require errors

closes #1469

`lein run` currently has some special error handling around
FileNotFoundException which helps it decide what exactly it should
do. Unfortunately if the actual running of the given main function
itself throws a FileNotFoundException this is currently caught by
Leiningen and assumed to be a require error.

The simple solution is to run the main method outside of that error
handling block.

Regression test provided.