Try to connect in Begin() too. Postpone error handling to Interceptor.
Try to connect in Begin() too. Postpone error handling to Interceptor.

This change will improve Mongo and Revel plays nicer together in case Mongo is not started yet or restarted while Revel is running.

Dial() error is postponed until the Before() interceptor and Revel won't panic any longer.
feimyy/revmgo,creativelikeadog/revel-mgo,janekolszak/revmgo,jgraham909/revmgo,jgraham909/revmgo,oblank/revel-mgo,feimyy/revmgo,janekolszak/revmgo,oblank/revel-mgo