Skip to content

Commit c7a05c7

Browse files
committed
Debug error message
1 parent b9d84ea commit c7a05c7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Solana.Unity.Dex/Math/Percentage.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,9 +176,9 @@ public static Percentage FromDouble(double dValue)
176176
{
177177
throw new PercentageException("Conversion not possible due to overflow");
178178
}
179-
catch (Exception)
179+
catch (Exception exp)
180180
{
181-
throw new PercentageException("Conversion not possible");
181+
throw new PercentageException("Conversion not possible: " + exp.Message);
182182
}
183183
}
184184

0 commit comments

Comments
 (0)