Add proper error message for failed tree import