Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
19
Task/Exceptions/Lingo/exceptions-1.lingo
Normal file
19
Task/Exceptions/Lingo/exceptions-1.lingo
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
-- parent script "ErrorHandler"
|
||||
|
||||
on alertHook (me, errorType, errorMessage, alertType)
|
||||
if alertType=#alert then return 0 -- ignore programmatic alerts
|
||||
|
||||
-- log error in file "error.log"
|
||||
fn = _movie.path&"error.log"
|
||||
fp = xtra("fileIO").new()
|
||||
fp.openFile(fn, 2)
|
||||
if fp.status() = -37 then
|
||||
fp.createFile(fn)
|
||||
fp.openFile(fn, 2)
|
||||
end if
|
||||
fp.setPosition(fp.getLength())
|
||||
fp.writeString(_system.date() && _system.time() && errorType & ": " & errorMessage & RETURN)
|
||||
fp.closeFile()
|
||||
|
||||
return 1 -- continues movie playback, no error dialog
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue