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