Generate meaningful error message when well cannot be deleted due to related qc template
perlcritic fix