Improve error message for missing content model on import
authorThis, that and the other <at.light@live.com.au>
Sat, 10 Oct 2015 08:51:20 +0000 (19:51 +1100)
committerThis, that and the other <at.light@live.com.au>
Sat, 10 Oct 2015 08:51:20 +0000 (19:51 +1100)
commitcdc36570eadae18ef367be34a901f3c21b742557
treecc1a8c60b6bf06cfe95ad8fd03b9d02a061386e9
parent586f84000b3959a6141b2469f234b46ed24d6e20
Improve error message for missing content model on import

I was initially going to refactor out the error message into Import.php,
but it quickly became apparent that WikiImporter's error handling needs a
LOT of work. In particular, to localise the error message into the user's
language is sadly non-trivial.

Although not used currently, the MWUnknownContentModelException subclass
will help with error handling improvements in the future.

Bug: T49270
Change-Id: I9f53c9d6a8a2ea842cb2ba94d4131e10a8b08f5d
autoload.php
includes/content/ContentHandler.php