mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-08-07 01:13:08 +02:00
#706 - Error handling
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user