project: add logging to all error conditions