mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-04 01:48:28 +00:00
Improve panic message
This commit is contained in:
parent
b767214f90
commit
a4e39080d3
@ -44,7 +44,7 @@ impl Scalar {
|
||||
/// Panics, if `scalar` is NaN.
|
||||
pub fn from_f64(scalar: f64) -> Self {
|
||||
if scalar.is_nan() {
|
||||
panic!("Invalid scalar value: {scalar}");
|
||||
panic!("`Scalar` value must not be NaN");
|
||||
}
|
||||
|
||||
Self(scalar)
|
||||
|
Loading…
Reference in New Issue
Block a user