Uncomment catching of exceptions. This should fix #135

This commit is contained in:
Hackerpilot 2014-05-26 21:57:42 +00:00
parent 629c8a7959
commit 1464c3f5ae
1 changed files with 8 additions and 8 deletions

View File

@ -135,8 +135,8 @@ struct ModuleCache
ACSymbol*[] symbols;
// try
// {
try
{
import core.memory;
import std.stdio;
import std.typecons;
@ -177,12 +177,12 @@ struct ModuleCache
typeid(Scope).destroy(third.moduleScope);
typeid(SemanticSymbol).destroy(third.rootSymbol);
symbolsAllocated += first.symbolsAllocated;
// }
// catch (Exception ex)
// {
// Log.error("Couln't parse ", location, " due to exception: ", ex.msg);
// return [];
// }
}
catch (Exception ex)
{
Log.error("Couln't parse ", location, " due to exception: ", ex.msg);
return [];
}
SysTime access;
SysTime modification;
getTimes(cachedLocation, access, modification);