From 0160c52b612336c7af5964f20243039756c01870 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Mon, 22 Jan 2024 06:37:51 +0100 Subject: [PATCH] dftm commander, output a warning if the tool is missing xref #125 --- src/u_dfmt.pas | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/u_dfmt.pas b/src/u_dfmt.pas index ac922262..d69295f1 100644 --- a/src/u_dfmt.pas +++ b/src/u_dfmt.pas @@ -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);