# HG changeset patch
# User unc0rr
# Date 1386698997 -14400
# Node ID 6166aa84a396c190a814de2ff794928b2f46b439
# Parent  984b0f2cdf6782e31e0292bd9ad7b37a439c4f89
Better diagnostic message when failing to load theme.cfg

diff -r 984b0f2cdf67 -r 6166aa84a396 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;