LightPT - правка в выводе ошибки
Гиперссылки во всех окнах вывода
This commit is contained in:
parent
3050041a73
commit
2dab40dcd9
|
|
@ -15,7 +15,7 @@ internal static class RevisionClass
|
||||||
public const string Major = "3";
|
public const string Major = "3";
|
||||||
public const string Minor = "9";
|
public const string Minor = "9";
|
||||||
public const string Build = "0";
|
public const string Build = "0";
|
||||||
public const string Revision = "3343";
|
public const string Revision = "3346";
|
||||||
|
|
||||||
public const string MainVersion = Major + "." + Minor;
|
public const string MainVersion = Major + "." + Minor;
|
||||||
public const string FullVersion = Major + "." + Minor + "." + Build + "." + Revision;
|
public const string FullVersion = Major + "." + Minor + "." + Build + "." + Revision;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
%MINOR%=9
|
|
||||||
%REVISION%=3343
|
|
||||||
%COREVERSION%=0
|
%COREVERSION%=0
|
||||||
|
%REVISION%=3346
|
||||||
|
%MINOR%=9
|
||||||
%MAJOR%=3
|
%MAJOR%=3
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
// Запустите программу
|
||||||
|
begin
|
||||||
|
|
||||||
|
end.
|
||||||
|
|
@ -11,6 +11,10 @@ begin
|
||||||
TasksArr.CheckTaskT(name)
|
TasksArr.CheckTaskT(name)
|
||||||
else
|
else
|
||||||
case name of
|
case name of
|
||||||
|
'Введение': begin
|
||||||
|
ColoredMessage('Данный урок посвящён массивам в PascalABC.NET');
|
||||||
|
ColoredMessage('Ознакомьтесь предварительно с теорией: https://pascalabcnet.github.io/school_arrays.html',MsgColorGray);
|
||||||
|
end;
|
||||||
'HW2': begin
|
'HW2': begin
|
||||||
ClearOutputListFromSpaces;
|
ClearOutputListFromSpaces;
|
||||||
ConvertStringsToNumbersInOutputList;
|
ConvertStringsToNumbersInOutputList;
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
3.9.0.3343
|
3.9.0.3346
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
!define VERSION '3.9.0.3343'
|
!define VERSION '3.9.0.3346'
|
||||||
|
|
|
||||||
|
|
@ -2853,8 +2853,12 @@ begin
|
||||||
begin
|
begin
|
||||||
foreach var x in e.InnerExceptions do
|
foreach var x in e.InnerExceptions do
|
||||||
if x is HTTPRequestException then
|
if x is HTTPRequestException then
|
||||||
ColoredMessage(x.InnerException?.Message??'',MsgColorGray)
|
begin
|
||||||
else ColoredMessage(x.Message,MsgColorGray);
|
if x.InnerException<>nil then
|
||||||
|
ColoredMessage('Ошибка сервера: '+x.InnerException.Message,MsgColorGray)
|
||||||
|
else ColoredMessage('Неизвестная ошибка сервера',MsgColorGray)
|
||||||
|
end
|
||||||
|
else ColoredMessage('Ошибка сервера: '+x.Message,MsgColorGray);
|
||||||
end;
|
end;
|
||||||
on e: Exception do
|
on e: Exception do
|
||||||
ColoredMessage(e.Message,MsgColorGray);
|
ColoredMessage(e.Message,MsgColorGray);
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ namespace VisualPascalABC
|
||||||
outputTextBox.LinkClicked += outputTextBox_LinkClicked;
|
outputTextBox.LinkClicked += outputTextBox_LinkClicked;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void outputTextBox_LinkClicked(object sender, LinkClickedEventArgs e)
|
public void outputTextBox_LinkClicked(object sender, LinkClickedEventArgs e)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -313,6 +313,8 @@ namespace VisualPascalABC
|
||||||
res.BackColor = orig.BackColor;
|
res.BackColor = orig.BackColor;
|
||||||
res.Parent = orig.Parent;
|
res.Parent = orig.Parent;
|
||||||
res.ContextMenuStrip = orig.ContextMenuStrip;
|
res.ContextMenuStrip = orig.ContextMenuStrip;
|
||||||
|
res.DetectUrls = true;
|
||||||
|
res.LinkClicked += OutputWindow.outputTextBox_LinkClicked;
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2853,8 +2853,12 @@ begin
|
||||||
begin
|
begin
|
||||||
foreach var x in e.InnerExceptions do
|
foreach var x in e.InnerExceptions do
|
||||||
if x is HTTPRequestException then
|
if x is HTTPRequestException then
|
||||||
ColoredMessage(x.InnerException?.Message??'',MsgColorGray)
|
begin
|
||||||
else ColoredMessage(x.Message,MsgColorGray);
|
if x.InnerException<>nil then
|
||||||
|
ColoredMessage('Ошибка сервера: '+x.InnerException.Message,MsgColorGray)
|
||||||
|
else ColoredMessage('Неизвестная ошибка сервера',MsgColorGray)
|
||||||
|
end
|
||||||
|
else ColoredMessage('Ошибка сервера: '+x.Message,MsgColorGray);
|
||||||
end;
|
end;
|
||||||
on e: Exception do
|
on e: Exception do
|
||||||
ColoredMessage(e.Message,MsgColorGray);
|
ColoredMessage(e.Message,MsgColorGray);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue