diff --git a/CHANGELOG.md b/CHANGELOG.md index 99e7d575..9221ebe8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ - [#688](https://github.com/estruyf/vscode-front-matter/issues/688): Allow to show the scheduled articles in the content dashboard (filter and group) - [#690](https://github.com/estruyf/vscode-front-matter/issues/690): Added the ability to filter values in the `contentRelationship` field - [#700](https://github.com/estruyf/vscode-front-matter/issues/700): Added the `{{pathToken.relPath}}` placeholder for the `previewPath` property +- [#706](https://github.com/estruyf/vscode-front-matter/issues/706): Show the error of scripts failing in the Front Matter output panel ### ⚡️ Optimizations diff --git a/src/helpers/CustomScript.ts b/src/helpers/CustomScript.ts index f9f747d4..8c60ca0f 100644 --- a/src/helpers/CustomScript.ts +++ b/src/helpers/CustomScript.ts @@ -204,7 +204,7 @@ export class CustomScript { return; } catch (e) { - Notifications.error(`${script.title}: ${(e as Error).message}`); + Notifications.errorWithOutput(`${script.title} -`); return; } } @@ -434,6 +434,7 @@ export class CustomScript { return new Promise(async (resolve, reject) => { exec(fullScript, { cwd: wsPath }, (error, stdout) => { if (error) { + Logger.error(error.message); reject(error.message); return; } diff --git a/src/helpers/SettingsHelper.ts b/src/helpers/SettingsHelper.ts index a4bb7c15..922e94c0 100644 --- a/src/helpers/SettingsHelper.ts +++ b/src/helpers/SettingsHelper.ts @@ -668,7 +668,10 @@ export class Settings { await window.withProgress( { location: vscode.ProgressLocation.Notification, - title: l10n.t(LocalizationKey.helpersSettingsHelperReadConfigProgressTitle) + title: l10n.t( + LocalizationKey.helpersSettingsHelperReadConfigProgressTitle, + EXTENSION_NAME + ) }, async () => { const absFilePath = Folders.getAbsFilePath(dynamicConfigPath);