Skip to content

Commit

Permalink
wrap rethrow exception
Browse files Browse the repository at this point in the history
  • Loading branch information
vilinski committed Feb 4, 2024
1 parent 28ae9a4 commit 4f24c25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chdb/LocalResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ private TimeSpan FromSecondsSafe(double seconds)
{
return TimeSpan.FromSeconds(seconds);
}
catch (OverflowException)
catch (OverflowException ex)
{
Console.Error.WriteLine($"Overflow: {seconds}"); // TODO linux-x64 bug?
return TimeSpan.Zero;
throw new OverflowException("wtf, linux bug?", ex);
}
}

Expand Down

0 comments on commit 4f24c25

Please sign in to comment.