diff --git a/plugins/todo-backend/src/lib/TodoReader/TodoScmReader.ts b/plugins/todo-backend/src/lib/TodoReader/TodoScmReader.ts index 316ac7840f..2a191d2cb4 100644 --- a/plugins/todo-backend/src/lib/TodoReader/TodoScmReader.ts +++ b/plugins/todo-backend/src/lib/TodoReader/TodoScmReader.ts @@ -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}`, + ); } } diff --git a/plugins/todo-backend/src/service/TodoReaderService.ts b/plugins/todo-backend/src/service/TodoReaderService.ts index 85949065e7..3965257eff 100644 --- a/plugins/todo-backend/src/service/TodoReaderService.ts +++ b/plugins/todo-backend/src/service/TodoReaderService.ts @@ -51,7 +51,7 @@ export class TodoReaderService implements TodoService { async listTodos(req: ListTodosRequest): Promise { 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) { diff --git a/plugins/todo/README.md b/plugins/todo/README.md index aeaa72b3b9..8a8383b5f7 100644 --- a/plugins/todo/README.md +++ b/plugins/todo/README.md @@ -1,6 +1,6 @@ # @backstage/plugin-todo -This plugins lists `// TODO` comments in source code. It currently exports a single component extension for use on entity pages. +This plugin lists `// TODO` comments in source code. It currently exports a single component extension for use on entity pages. ## Extensions