[PATCH 01/22] buildman: Refactor error-line output int a function