From: Rico Tzschichholz Date: Fri, 13 Mar 2020 18:09:07 +0000 (+0100) Subject: vala: Use error() instead of Report.error() inside of CodeContext.get() X-Git-Tag: 0.48.2~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d3394d4a86ead5ec9d9ca5df6cd4c84e408403e;p=thirdparty%2Fvala.git vala: Use error() instead of Report.error() inside of CodeContext.get() This is a bad thing while Report.error() actually uses CodeContext.get() Regression of e436f2833dc332e3fd728fe6f6b2cd7f224dcf33 --- diff --git a/vala/valacodecontext.vala b/vala/valacodecontext.vala index 88956caf9..9f21b9139 100644 --- a/vala/valacodecontext.vala +++ b/vala/valacodecontext.vala @@ -260,8 +260,7 @@ public class Vala.CodeContext { List* context_stack = context_stack_key.get (); if (context_stack == null || context_stack->size == 0) { - Report.error (null, "internal: No context available to get"); - assert_not_reached (); + error ("internal: No context available to get"); } return context_stack->get (context_stack->size - 1); @@ -287,8 +286,7 @@ public class Vala.CodeContext { List* context_stack = context_stack_key.get (); if (context_stack == null || context_stack->size == 0) { - Report.error (null, "internal: No context available to pop"); - assert_not_reached (); + error ("internal: No context available to pop"); } context_stack->remove_at (context_stack->size - 1);