Error handling

This commit is contained in:
FlightControl_Master 2017-09-08 10:30:52 +02:00
parent f628e720a9
commit fcce06c3f1

View File

@ -379,7 +379,7 @@ function CONTROLLABLE:SetTask( DCSTask, WaitTime )
local Controller = self:_GetController()
Controller:setTask( DCSTask )
else
error( DCSControllableName .. " is not alive anymore. Cannot set DCSTask " .. DCSTask )
BASE:E( DCSControllableName .. " is not alive anymore. Cannot set DCSTask " .. DCSTask )
end
end