Apply suggestions from code review

Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Co-authored-by: Adam Harvey <adam.harvey@dxc.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-03-11 17:32:59 +01:00
parent 9c4ebfb4e4
commit 0d7db68595
3 changed files with 5 additions and 3 deletions
@@ -129,7 +129,9 @@ export class TodoScmReader implements TodoReader {
})),
);
} catch (error) {
this.logger.error(`Failed to parse TODO in ${url}, ${error}`);
this.logger.error(
`Failed to parse TODO in ${url} at ${file.path}, ${error}`,
);
}
}
@@ -51,7 +51,7 @@ export class TodoReaderService implements TodoService {
async listTodos(req: ListTodosRequest): Promise<ListTodosResponse> {
if (!req.entity) {
throw new InputError('entity filter is required to list todos');
throw new InputError('Entity filter is required to list TODOs');
}
const entity = await this.catalogClient.getEntityByName(req.entity);
if (!entity) {