Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

Commit

Permalink
inner exc
Browse files Browse the repository at this point in the history
  • Loading branch information
teocomi committed Oct 23, 2019
1 parent 231066a commit 60a234d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions AssemblyCatalogue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,7 @@ public class SpeckleKitLoader

public SpeckleKitLoader( )
{

#if DEBUG
SpeckleKitsDirectory = System.Environment.GetFolderPath( System.Environment.SpecialFolder.LocalApplicationData ) + @"\SpeckleKitsDebug\";
#else
SpeckleKitsDirectory = System.Environment.GetFolderPath( System.Environment.SpecialFolder.LocalApplicationData ) + @"\SpeckleKits\";
#endif

SpeckleAssemblyName = typeof( SpeckleObject ).GetTypeInfo().Assembly.GetName();
assemblies = new Lazy<IReadOnlyCollection<Assembly>>( GetAvailableAssemblies );
}
Expand Down
4 changes: 2 additions & 2 deletions Conversion/ConverterDeserialisation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ public static object Deserialise( SpeckleObject obj, object root = null, IEnumer
catch ( Exception e )
{
// to native method failed, try another one if present!
if(e is Data.SpeckleException)
ex = e as Data.SpeckleException;
if(e.InnerException!=null && e.InnerException is Data.SpeckleException)
ex = e.InnerException as Data.SpeckleException;
}
}

Expand Down

0 comments on commit 60a234d

Please sign in to comment.