support warnings in addition to errors on commit