Update plugins/scaffolder-backend/src/service/router.ts

Co-authored-by: Adam Harvey <adam.harvey@dxc.com>
This commit is contained in:
Johan Haals
2021-02-17 09:08:12 +01:00
committed by GitHub
parent b6cf3cfc3c
commit 7c5b0e206f
@@ -259,7 +259,7 @@ export async function createRouter(
const { taskId } = req.params;
const task = await taskBroker.get(taskId);
if (!task) {
throw new NotFoundError(`task with id ${taskId} does not exist`);
throw new NotFoundError(`Task with id ${taskId} does not exist`);
}
res.status(200).json(task);
})