From be7a697733f21a60bed2b87f57934e30c2da33c4 Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Sun, 27 Mar 2022 09:04:39 +0200 Subject: [PATCH] Fix crash when SQL export fails to create output directory, cancel operation in that case --- source/tabletools.pas | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/tabletools.pas b/source/tabletools.pas index e3b80f7d..53b5059f 100644 --- a/source/tabletools.pas +++ b/source/tabletools.pas @@ -789,6 +789,11 @@ var ErrorDialog(E.Message); FCancelled := True; end; + on E:EInOutError do begin + // ForceDirectories failed with "Unable to create directory." + ErrorDialog(E.Message); + FCancelled := True; + end; end; end;