comparison mde/input/Config.d @ 68:3a737e06dc50

Unittests: fixes and changes. Plus some doc changes.
author Diggory Hardy <diggory.hardy@gmail.com>
date Fri, 04 Jul 2008 18:49:16 +0100
parents 108d123238c0
children 7fc0a8295c83
comparison
equal deleted inserted replaced
67:108d123238c0 68:3a737e06dc50
152 } 152 }
153 153
154 if (file_configs) file.read(file_configs); // restrict to this set IF a restriction was given 154 if (file_configs) file.read(file_configs); // restrict to this set IF a restriction was given
155 else file.read(); // otherwise read all 155 else file.read(); // otherwise read all
156 } 156 }
157 catch (MT.MTException) { 157 catch (MT.MTException e) {
158 logger.fatal ("Unable to load configs from: " ~ filename); 158 logger.fatal ("Unable to load configs from: " ~ filename ~ ":");
159 logger.fatal (e.msg);
159 throw new ConfigLoadException; 160 throw new ConfigLoadException;
160 } 161 }
161 162
162 // Trying to directly cast dataset.sec to configs resulted in the Configs losing their data. 163 // Trying to directly cast dataset.sec to configs resulted in the Configs losing their data.
163 // Also this is safer since it checks types (and must be done if configs wasn't previously empty). 164 // Also this is safer since it checks types (and must be done if configs wasn't previously empty).