added fail cond. after docpad generate