output errors, and properly pass docket dir information to docket detector