X-Git-Url: http://nitlanguage.org diff --git a/src/frontend/parallelization_phase.nit b/src/frontend/parallelization_phase.nit index 8cd7965..2d15d82 100644 --- a/src/frontend/parallelization_phase.nit +++ b/src/frontend/parallelization_phase.nit @@ -36,14 +36,14 @@ private class ParallelizationPhase if nat.n_atid.n_id.text != "threaded" then return if not nmethdef isa AMethPropdef then - toolcontext.error(nmethdef.location, "Syntax error: only a method can be threaded.") + toolcontext.error(nat.location, "Syntax Error: only a method can be threaded.") return end #TODO: check for self calls if nmethdef.n_signature.n_type != null then - toolcontext.error(nmethdef.location, "Syntax error: method with a return value not supported yet.") + toolcontext.error(nat.location, "Error: functions not supported yet.") return end