print available workspaces if there might be a typo

This commit is contained in:
2025-01-15 14:19:16 +01:00
parent 8cd5a65542
commit c62a74a635

View File

@@ -210,7 +210,7 @@ export class TogglTrack extends InstanceBase<ModuleConfig> {
if (this.workspaceId == undefined) {
// no workspace found
this.log('debug', 'workspace not found. Response: ' + JSON.stringify(workspaces))
this.updateStatus(InstanceStatus.BadConfig, 'No workspace found')
this.updateStatus(InstanceStatus.BadConfig, 'Available Workspaces: ' + workspaces.map((ws) => ws.name).join(','))
return
}