diff --git a/src/views/workflows/workflow.ts b/src/views/workflows/workflow.ts index 4753b1c..b262d00 100644 --- a/src/views/workflows/workflow.ts +++ b/src/views/workflows/workflow.ts @@ -12,7 +12,8 @@ export default class WorkflowTreeItem extends TreeItem implements GithubLocalAct this.contextValue = WorkflowTreeItem.contextValue; this.iconPath = new ThemeIcon('layers'); this.tooltip = `Name: ${workflow.name}\n` + - `Path: ${workflow.uri.fsPath}`; + `Path: ${workflow.uri.fsPath}\n` + + (workflow.error ? `Error: ${workflow.error}` : ``); if(workflow.error) { this.resourceUri = Uri.parse(`${WorkflowTreeItem.contextValue}:${workflow.name}?error=${workflow.error}`, true); diff --git a/src/workflowsManager.ts b/src/workflowsManager.ts index 5fb15d4..0436be8 100644 --- a/src/workflowsManager.ts +++ b/src/workflowsManager.ts @@ -73,7 +73,7 @@ export class WorkflowsManager { workflows.push({ name: (yamlContent ? yamlContent.name : undefined) || path.parse(workflowFileUri.fsPath).name, uri: workflowFileUri, - error: 'Failed to parse workflow file' + error: 'Failed to parse workflow file.' }); } }