Scaffolder: fix typos and log output

Co-authored-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Johan Haals
2021-02-05 13:52:20 +01:00
committed by GitHub
parent 6ca31fb834
commit ba3a6a9be0
2 changed files with 3 additions and 3 deletions
@@ -99,7 +99,7 @@ export class TemplateActionRegistry {
register(action: TemplateAction) {
if (this.actions.has(action.id)) {
throw new ConflictError(
`Template action with id ${action.id} as already been registered`,
`Template action with ID '${action.id}' has already been registered`,
);
}
this.actions.set(action.id, action);
@@ -109,7 +109,7 @@ export class TemplateActionRegistry {
const action = this.actions.get(actionId);
if (!action) {
throw new NotFoundError(
`Template action with id ${actionId} is not registered.`,
`Template action with ID '${actionId}' is not registered.`,
);
}
return action;
@@ -258,7 +258,7 @@ export async function createRouter(
'Content-Type': 'text/event-stream',
});
// After client opens connection send all nests as string
// After client opens connection send all events as string
const unsubscribe = taskBroker.observe(
{ taskId, after },
(error, { events }) => {