Permalink
Browse files

Show bubbled errors better

  • Loading branch information...
1 parent 4e14ac0 commit fe8ebad7954f7dec2ef36dbcada2f849bb92be99 Felix Jorkowski committed Jan 21, 2014
@@ -59,8 +59,12 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
- <Content Include="NSass.Wrapper\NSass.Wrapper.x64.dll" />
- <Content Include="NSass.Wrapper\NSass.Wrapper.x86.dll" />
+ <Content Include="NSass.Wrapper\NSass.Wrapper.x64.dll">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="NSass.Wrapper\NSass.Wrapper.x86.dll">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(SolutionDir)\.nuget\nuget.targets" />
@@ -2,15 +2,15 @@
<package >
<metadata>
<id>NodeAssets.Core</id>
- <version>2.0.0</version>
+ <version>2.0.1</version>
<authors>Felix Jorkowski (jorkowski.com)</authors>
<owners>Felix Jorkowski (jorkowski.com)</owners>
<licenseUrl>http://www.opensource.org/licenses/MIT</licenseUrl>
<projectUrl>https://github.com/ajorkowski/NodeAssets</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>The Core lib that handles watching your files.</description>
- <releaseNotes>Updated to .NET 4.5</releaseNotes>
- <copyright>Copyright 2013</copyright>
+ <releaseNotes>Properly shows underlying exceptions when error occurs</releaseNotes>
+ <copyright>Copyright 2014</copyright>
<tags>Asset Manager OWIN NodeJS</tags>
</metadata>
</package>
@@ -9,7 +9,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Felix Jorkowski (jorkowski.com)")]
[assembly: AssemblyProduct("NodeAssets.Core")]
-[assembly: AssemblyCopyright("Copyright © 2012")]
+[assembly: AssemblyCopyright("Copyright © 2014")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@@ -21,4 +21,4 @@
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("8094492a-cbbf-4e70-8bc4-eed9a438d489")]
-[assembly: AssemblyVersion("0.0.*")]
+[assembly: AssemblyVersion("2.0.1.*")]
@@ -1,8 +1,8 @@
-using System;
+using NodeAssets.Compilers;
+using System;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
-using NodeAssets.Compilers;
namespace NodeAssets.Core.SourceManager
{
@@ -53,7 +53,7 @@ public Task<string> CompileFile(FileInfo file, ICompilerConfiguration compilerCo
}
catch (Exception e)
{
- result = "An error occurred during initial compilation: \r\n" + e.Message;
+ result = "An error occurred during initial compilation: \r\n" + e.GetBaseException().Message;
hasErrored = true;
}
}
@@ -67,7 +67,7 @@ public Task<string> CompileFile(FileInfo file, ICompilerConfiguration compilerCo
}
catch (Exception e)
{
- result = "An error occurred during minification: \r\n" + e.Message;
+ result = "An error occurred during minification: \r\n" + e.GetBaseException().Message;
}
}

0 comments on commit fe8ebad

Please sign in to comment.