Skip to content

Commit

Permalink
Fix error message in MatsubaraFreq ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelBadr committed Sep 12, 2023
1 parent 44108f7 commit d691097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/freq.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ struct MatsubaraFreq{S<:Statistics} <: Number
MatsubaraFreq(stat::Statistics, n::Integer) = new{typeof(stat)}(n)

function MatsubaraFreq{S}(n::Integer) where {S<:Statistics}
allowed(S, n) || error("Frequency $(n)π/β is not $stat")
allowed(S, n) || throw(DomainError(n, "Frequency $(n)π/β is not $S"))
return new{S}(n)
end
end
Expand Down

0 comments on commit d691097

Please sign in to comment.