|
@@ -830,14 +830,8 @@ UnicodeString __fastcall TScript::ListingSysErrorMessage()
|
|
return Result;
|
|
return Result;
|
|
}
|
|
}
|
|
//---------------------------------------------------------------------------
|
|
//---------------------------------------------------------------------------
|
|
-void __fastcall TScript::NoMatch(const UnicodeString & Mask, const UnicodeString & Error)
|
|
|
|
|
|
+void __fastcall TScript::NoMatch(const UnicodeString & Message)
|
|
{
|
|
{
|
|
- UnicodeString Message = FMTLOAD(SCRIPT_MATCH_NO_MATCH, (Mask));
|
|
|
|
- if (!Error.IsEmpty())
|
|
|
|
- {
|
|
|
|
- Message += FORMAT(L" (%s)", (Error));
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
if (FFailOnNoMatch)
|
|
if (FFailOnNoMatch)
|
|
{
|
|
{
|
|
throw Exception(Message);
|
|
throw Exception(Message);
|
|
@@ -848,6 +842,17 @@ void __fastcall TScript::NoMatch(const UnicodeString & Mask, const UnicodeString
|
|
}
|
|
}
|
|
}
|
|
}
|
|
//---------------------------------------------------------------------------
|
|
//---------------------------------------------------------------------------
|
|
|
|
+void __fastcall TScript::NoMatch(const UnicodeString & Mask, const UnicodeString & Error)
|
|
|
|
+{
|
|
|
|
+ UnicodeString Message = FMTLOAD(SCRIPT_MATCH_NO_MATCH, (Mask));
|
|
|
|
+ if (!Error.IsEmpty())
|
|
|
|
+ {
|
|
|
|
+ Message += FORMAT(L" (%s)", (Error));
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ NoMatch(Message);
|
|
|
|
+}
|
|
|
|
+//---------------------------------------------------------------------------
|
|
void __fastcall TScript::FreeFiles(TStrings * FileList)
|
|
void __fastcall TScript::FreeFiles(TStrings * FileList)
|
|
{
|
|
{
|
|
for (int i = 0; i < FileList->Count; i++)
|
|
for (int i = 0; i < FileList->Count; i++)
|
|
@@ -1998,7 +2003,7 @@ void __fastcall TScript::SynchronizeProc(TScriptProcParams * Parameters)
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
- PrintLine(LoadStr(SCRIPT_SYNCHRONIZE_NODIFFERENCE));
|
|
|
|
|
|
+ NoMatch(LoadStr(SCRIPT_SYNCHRONIZE_NODIFFERENCE));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
__finally
|
|
__finally
|