RosettaCodeData/Task/Exceptions/AutoHotkey/exceptions-2.ahk

13 lines
146 B
AutoHotkey

foo()
If ErrorLevel
Msgbox calling foo failed with: %ErrorLevel%
foo()
{
If success
Return
Else
ErrorLevel = foo_error
Return
}