[Commits] [wesnoth/wesnoth] 1b483b: Don't call preprocess_file() on an empty path if f...
GitHub
noreply at github.com
Fri Jun 13 03:41:25 UTC 2014
Branch: refs/heads/master
Home: https://github.com/wesnoth/wesnoth
Commit: 1b483bbf314c1c2ab966920d728bb902706f9aa2
https://github.com/wesnoth/wesnoth/commit/1b483bbf314c1c2ab966920d728bb902706f9aa2
Author: Ignacio R. Morelle <shadowm at wesnoth.org>
Date: 2014-06-12 (Thu, 12 Jun 2014)
Changed paths:
M src/font.cpp
Log Message:
-----------
Don't call preprocess_file() on an empty path if fonts.cfg can't be found
get_wml_location() returns an empty string on failure, and there is
really no point in calling preprocess_file() on that -- it only results
in a confusing error message.
Replaces this sequence often found when Wesnoth can't resolve the path
to its data directory:
20140612 23:37:05 error filesystem: Trying to open file with empty name.
20140612 23:37:05 error config: Could not open file
could not initialize fonts
... with the following one:
20140612 23:38:52 error font: could not resolve path to fonts.cfg, file not found
could not initialize fonts
... which should be a little bit more helpful in pointing users in the
right direction in the aforementioned case.
More information about the Commits
mailing list