chore: update code review

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2024-03-05 11:20:36 +01:00
parent 4fd8dffdd9
commit cb68df37c5
2 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
---
'@backstage/plugin-scaffolder-node': patch
'@backstage/plugin-scaffolder-node': minor
---
Update the task context type to contain the new auth initiator credentials.
Update task context type to contain the new auth initiator credentials.
@@ -183,7 +183,9 @@ export class TaskManager implements TaskContext {
return JSON.parse(this.task.secrets.__initiatorCredentials);
}
if (!this.auth) {
throw new Error('Unable to access credentials in ....');
throw new Error(
'Failed to create none credentials in scaffolder task. The TaskManager has not been initialized with an auth service implementation',
);
}
return this.auth.getNoneCredentials();
}