Adding additional error message to logging