From: Daniel Espinosa Date: Sun, 2 Jan 2022 23:37:29 +0000 (-0600) Subject: CatchClause: use context when available to avoid report static access X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c76b4264860cbf0564347b025527d95f6ba1358c;p=thirdparty%2Fvala.git CatchClause: use context when available to avoid report static access --- diff --git a/vala/valacatchclause.vala b/vala/valacatchclause.vala index 085d2c49b..14df99cfe 100644 --- a/vala/valacatchclause.vala +++ b/vala/valacatchclause.vala @@ -112,14 +112,14 @@ public class Vala.CatchClause : CodeNode { checked = true; if (context.profile == Profile.POSIX) { - Report.error (source_reference, "`catch' is not supported in POSIX profile"); + context.report.log_error (source_reference, "`catch' is not supported in POSIX profile"); error = true; return false; } if (error_type != null) { if (!(error_type is ErrorType)) { - Report.error (source_reference, "clause must catch a valid error type, found `%s' instead", error_type.to_string ()); + context.report.log_error (source_reference, "clause must catch a valid error type, found `%s' instead", error_type.to_string ()); error = true; }