Catching an error in inputownfiles