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

Commit

Permalink
another nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
teocomi committed Oct 22, 2019
1 parent af2aef7 commit 231066a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Conversion/ConverterDeserialisation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public static object Deserialise( SpeckleObject obj, object root = null, IEnumer
// iterate through the ToNative method array
if ( methods.Count > 0 )
{
Exception ex = null;
Data.SpeckleException ex = null;
foreach ( var method in methods )
{
try
Expand All @@ -89,11 +89,12 @@ public static object Deserialise( SpeckleObject obj, object root = null, IEnumer
catch ( Exception e )
{
// to native method failed, try another one if present!
ex = e;
if(e is Data.SpeckleException)
ex = e as Data.SpeckleException;
}
}

if(ex!=null && ex is Data.SpeckleException)
if(ex!=null)
{
return new SpeckleConversionError
{
Expand Down

0 comments on commit 231066a

Please sign in to comment.