print diagnostic messages if anything goes wrong during minimization

1 job for nifty2go in 4 minutes and 40 seconds