HomePhabricator

Correctly report an error for file names without extension

Authored by matmarex.

Description

Correctly report an error for file names without extension

mw.Title.newFromFileName() doesn't throw on unparseable titles,
it just returns null.

Also refactor a bit to avoid showing two error messages at once.

Bug: T89792
Change-Id: I200fa6b571a32c63c1ff3a8f77ddcb9ae2d9e550