[vala/tintou/glib-version-message] vala: Trigger understandable errors with GLib target version
- From: Corentin Noël <corentinnoel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/tintou/glib-version-message] vala: Trigger understandable errors with GLib target version
- Date: Tue, 4 Dec 2018 16:02:12 +0000 (UTC)
commit 77954eb8f26d96d82c61bc835a539140de8391a6
Author: Corentin Noël <corentin elementary io>
Date: Tue Dec 4 17:01:06 2018 +0100
vala: Trigger understandable errors with GLib target version
vala/valacodecontext.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/vala/valacodecontext.vala b/vala/valacodecontext.vala
index 815899cee..34543a8d9 100644
--- a/vala/valacodecontext.vala
+++ b/vala/valacodecontext.vala
@@ -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) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]