detecting errors to be included in clean log