Better log error messages

Also some long-line cleanup.

@niksu this should help you diagnose your PR creation issue. My guess is that the problem is some combination of issues being disabled for your target repository and the head of the merge being equal or behind the base of the merge.