Better diagnostic message when failing to load theme.cfg
authorunc0rr
Tue, 10 Dec 2013 22:09:57 +0400
changeset 9778 6166aa84a396
parent 9777 984b0f2cdf67
child 9779 b67979a7cc52
Better diagnostic message when failing to load theme.cfg
hedgewars/uLandObjects.pas
--- a/hedgewars/uLandObjects.pas	Tue Dec 10 00:20:53 2013 -0500
+++ b/hedgewars/uLandObjects.pas	Tue Dec 10 22:09:57 2013 +0400
@@ -495,7 +495,7 @@
 s:= cPathz[ptCurrTheme] + '/' + cThemeCFGFilename;
 WriteLnToConsole('Reading objects info...');
 f:= pfsOpenRead(s);
-TryDo(f <> nil, 'Bad data or cannot access file ' + cThemeCFGFilename, true);
+TryDo(f <> nil, 'Bad data or cannot access file ' + s, true);
 
 ThemeObjects.Count:= 0;
 SprayObjects.Count:= 0;