Skip to content

Commit 6327fef

Browse files
committed
Error message dcapitalization
1 parent c6fd5ce commit 6327fef

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/interfaces/setup_interface.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ struct InvalidInputError <: AbstractInvalidInputException
8282
msg::String
8383
end
8484
function Base.showerror(io::IO, err::InvalidInputError)
85-
return println(io, "InvalidInputError: $(err.msg).")
85+
return println(io, "InvalidInputError: $(err.msg)")
8686
end
8787

8888
"""

src/phase_spaces.jl

+10-10
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ AbstractPhasespaceElement = Union{AbstractFourMomentum,Real}
6767
) where {T<:AbstractFourMomentum}
6868
return size(in_phase_space, 1) == number_incoming_particles(proc) || throw(
6969
DimensionMismatch(
70-
"The number of incoming particles <$(number_incoming_particles(proc))> is inconsistent with input size <$(size(in_phase_space,1))>",
70+
"the number of incoming particles <$(number_incoming_particles(proc))> is inconsistent with input size <$(size(in_phase_space,1))>",
7171
),
7272
)
7373
end
@@ -79,7 +79,7 @@ end
7979
) where {T<:AbstractFourMomentum}
8080
return size(out_phase_space, 1) == number_outgoing_particles(proc) || throw(
8181
DimensionMismatch(
82-
"The number of outgoing particles <$(number_outgoing_particles(proc))> is inconsistent with input size <$(size(out_phase_space,1))>",
82+
"the number of outgoing particles <$(number_outgoing_particles(proc))> is inconsistent with input size <$(size(out_phase_space,1))>",
8383
),
8484
)
8585
end
@@ -91,7 +91,7 @@ end
9191
) where {T<:Real}
9292
return size(in_phase_space, 1) == in_phase_space_dimension(proc, model) || throw(
9393
DimensionMismatch(
94-
"The dimension of the in-phase-space <$(in_phase_space_dimension(proc,model))> is inconsistent with input size <$(size(in_phase_space,1))>",
94+
"the dimension of the in-phase-space <$(in_phase_space_dimension(proc,model))> is inconsistent with input size <$(size(in_phase_space,1))>",
9595
),
9696
)
9797
end
@@ -103,7 +103,7 @@ end
103103
) where {T<:Real}
104104
return size(out_phase_space, 1) == out_phase_space_dimension(proc, model) || throw(
105105
DimensionMismatch(
106-
"The dimension of the out-phase-space <$(out_phase_space_dimension(proc,model))> is inconsistent with input size <$(size(out_phase_space,1))>",
106+
"the dimension of the out-phase-space <$(out_phase_space_dimension(proc,model))> is inconsistent with input size <$(size(out_phase_space,1))>",
107107
),
108108
)
109109
end
@@ -193,36 +193,36 @@ struct PhaseSpacePoint{
193193
}
194194
length(incoming_particles(proc)) == length(in_p) || throw(
195195
InvalidInputError(
196-
"The number of incoming particles given by the process ($(incoming_particles(proc))) mismatches the number of given stateful incoming particles ($(length(in_p)))",
196+
"the number of incoming particles given by the process ($(incoming_particles(proc))) mismatches the number of given stateful incoming particles ($(length(in_p)))",
197197
),
198198
)
199199
length(outgoing_particles(proc)) == length(out_p) || throw(
200200
InvalidInputError(
201-
"The number of outgoing particles given by the process ($(outgoing_particles(proc))) mismatches the number of given stateful outgoing particles ($(length(out_p)))",
201+
"the number of outgoing particles given by the process ($(outgoing_particles(proc))) mismatches the number of given stateful outgoing particles ($(length(out_p)))",
202202
),
203203
)
204204

205205
for (proc_p, p) in zip(incoming_particles(proc), in_p)
206206
proc_p == p.species || throw(
207207
InvalidInputError(
208-
"Process given particle species ($(proc_p)) does not match stateful particle species ($(p.species))",
208+
"process given particle species ($(proc_p)) does not match stateful particle species ($(p.species))",
209209
),
210210
)
211211
is_incoming(p) || throw(
212212
InvalidInputError(
213-
"Stateful particle $(p) is given as an incoming particle but is outgoing",
213+
"stateful particle $(p) given as an incoming particle but is outgoing",
214214
),
215215
)
216216
end
217217
for (proc_p, p) in zip(outgoing_particles(proc), out_p)
218218
proc_p == p.species || throw(
219219
InvalidInputError(
220-
"Process given particle species ($(proc_p)) does not match stateful particle species ($(p.species))",
220+
"process given particle species ($(proc_p)) does not match stateful particle species ($(p.species))",
221221
),
222222
)
223223
is_outgoing(p) || throw(
224224
InvalidInputError(
225-
"Stateful particle $(p) is given as an outgoing particle but is incoming",
225+
"stateful particle $(p) given as an outgoing particle but is incoming",
226226
),
227227
)
228228
end

0 commit comments

Comments
 (0)