dftm commander, output a warning if the tool is missing

xref 
This commit is contained in:
Basile Burg 2024-01-22 06:37:51 +01:00
parent f349dee6a4
commit 0160c52b61
1 changed files with 3 additions and 0 deletions

View File

@ -308,7 +308,10 @@ begin
if fDoc.isNotAssigned then
exit;
if not exeInSysPath('dfmt') then
begin
getMessageDisplay().message('DFMT is missing. See https://github.com/dlang-community/dfmt for more instructions on how to get DFMT.', nil, TAppMessageCtxt.amcAll, TAppMessageKind.amkWarn);
exit;
end;
fBackup.Assign(fDoc.Lines);
prc := TProcess.create(nil);