]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Trigger understandable errors with GLib target version 77954eb8f26d96d82c61bc835a539140de8391a6 34/head
authorCorentin Noël <corentin@elementary.io>
Tue, 4 Dec 2018 16:01:06 +0000 (17:01 +0100)
committerCorentin Noël <corentin@elementary.io>
Tue, 4 Dec 2018 16:01:06 +0000 (17:01 +0100)
vala/valacodecontext.vala

index 815899ceef06115a5aa806ab8acfd552e8f83eb7..34543a8d9e73018aeb054aa16aaab40085639590 100644 (file)
@@ -557,7 +557,7 @@ public class Vala.CodeContext {
 
                if (target_glib != null && target_glib.scanf ("%d.%d", out glib_major, out glib_minor) != 2
                    || glib_minor % 2 != 0) {
-                       Report.error (null, "Invalid format or version for target GLib");
+                       Report.error (null, "Only a stable version of GLib can be targeted, use MAJOR.MINOR format with MINOR as an even number");
                }
 
                if (glib_major != 2) {