mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2025-12-20 11:09:21 +01:00
Фикс парсера ошибок
Как завещал нам дедушка Декарт, «Я мыслю, следовательно, я есмь». Бля, файл короче чекается на наличие в парсере. component.get ("computer").beep заменил на computer.beep, ибо хуле-вообще. Ну и под шумок себя в контрибуторов вписал, ой, то есть ПОФИКСИЛ НЕСООТВЕТСТВИЕ ВИКИ КОДУ.
This commit is contained in:
parent
a5a3f7634e
commit
2bd4abc9a1
@ -2171,6 +2171,7 @@ function system.error(path, line, traceback)
|
||||
-- Read part of file to display error line
|
||||
-- GUI.alert("SYS", path)
|
||||
|
||||
if filesystem.exists(path) then
|
||||
for line in filesystem.lines(path) do
|
||||
if lineCounter >= codeView.fromLine and lineCounter <= toLine then
|
||||
codeView.lines[lineCounter] = line:gsub("\t", " ")
|
||||
@ -2186,6 +2187,7 @@ function system.error(path, line, traceback)
|
||||
computer.pullSignal(0)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
-- Stacktrace parsing
|
||||
local lines = text.wrap(traceback:gsub("\r\n", "\n"):gsub("\t", " "), window.width - codeView.width - 2)
|
||||
@ -2218,7 +2220,7 @@ function system.error(path, line, traceback)
|
||||
workspace:draw()
|
||||
|
||||
for i = 1, 3 do
|
||||
component.get("computer").beep(1500, 0.08)
|
||||
computer.beep(1500, 0.08)
|
||||
end
|
||||
end
|
||||
|
||||
@ -2646,6 +2648,7 @@ function system.updateDesktop()
|
||||
"Yakov Verevkin, vk.com/id60991376",
|
||||
"Alexey Smirnov, vk.com/id23897419",
|
||||
"Timofey Shestakov, vk.com/id113499693",
|
||||
"Fedor Cheremisenov, vk.com/id402150900",
|
||||
" ",
|
||||
"UX-advisers:",
|
||||
" ",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user