mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 03:01:07 +08:00
Don't catch too many types of exceptions, only file stream related ones, in a loop with much code which was never meant to be handled by a try/except block.
This commit is contained in:
@ -133,7 +133,7 @@ begin
|
||||
Queries.Free;
|
||||
Stream.Free;
|
||||
except
|
||||
on E: Exception do
|
||||
on E:EFileStreamError do
|
||||
begin
|
||||
ErrorDialog('Error while reading file "'+SQLFileName+'"', E.Message);
|
||||
Mainform.AddOrRemoveFromQueryLoadHistory(SQLFileName, False, True);
|
||||
|
Reference in New Issue
Block a user