mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-02 05:39:37 +01:00
increased verbosity when saving a form fails
git-svn-id: trunk@9391 -
This commit is contained in:
parent
20141d2b3b
commit
a26dc1c093
@ -4119,6 +4119,9 @@ begin
|
||||
end;
|
||||
except
|
||||
on E: Exception do begin
|
||||
// added to get more feedback on issue 7009
|
||||
Debugln('TMainIDE.SaveFileResources E3: ', E.Message);
|
||||
DumpExceptionBackTrace;
|
||||
ACaption:=lisStreamingError;
|
||||
AText:=Format(
|
||||
lisUnableToTransformBinaryComponentStreamOfTIntoText, [
|
||||
@ -6764,8 +6767,9 @@ begin
|
||||
{$IFDEF IDE_MEM_CHECK}CheckHeapWrtMemCnt('TMainIDE.DoOpenProjectFile A');{$ENDIF}
|
||||
Result:=mrCancel;
|
||||
if ExtractFileNameOnly(AFileName)='' then exit;
|
||||
|
||||
//debugln('TMainIDE.DoOpenProjectFile A1 "'+AFileName+'"');
|
||||
AFilename:=ExpandFileName(TrimFilename(AFilename));
|
||||
//debugln('TMainIDE.DoOpenProjectFile A2 "'+AFileName+'"');
|
||||
if not FilenameIsAbsolute(AFilename) then
|
||||
RaiseException('TMainIDE.DoOpenProjectFile: buggy ExpandFileName');
|
||||
Ext:=lowercase(ExtractFileExt(AFilename));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user