Skip to content

Commit f23f294

Browse files
jClugstorChrisRackauckas
authored andcommitted
Fix string escaping in lazy string error messages
1 parent bd4fba9 commit f23f294

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/NonlinearSolveSciPy/src/NonlinearSolveSciPy.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ function SciPyLeastSquares(; method::String = "trf", loss::String = "linear")
4444
valid_losses = ("linear", "soft_l1", "huber", "cauchy", "arctan")
4545
method in valid_methods ||
4646
throw(ArgumentError(
47-
lazy"Invalid method: $method. Valid methods are: $(join(valid_methods, ", "))"))
47+
lazy"Invalid method: $method. Valid methods are: $(join(valid_methods, \", \"))"))
4848
loss in valid_losses ||
4949
throw(ArgumentError(
50-
lazy"Invalid loss: $loss. Valid loss functions are: $(join(valid_losses, ",
51-
"))"))
50+
lazy"Invalid loss: $loss. Valid loss functions are: $(join(valid_losses, \",
51+
\"))"))
5252
return SciPyLeastSquares(method, loss, :SciPyLeastSquares)
5353
end
5454

0 commit comments

Comments
 (0)