]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
Added error when not exporting any namespaces for GIR
authorJesse van den Kieboom <jesse.vandenkieboom@epfl.ch>
Tue, 7 Feb 2012 10:22:35 +0000 (11:22 +0100)
committerJesse van den Kieboom <jesse.vandenkieboom@epfl.ch>
Wed, 8 Feb 2012 10:07:03 +0000 (11:07 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=669551

codegen/valagirwriter.vala

index fc2c6bf3dfcd22f7c7da926eaa02119a69e43c30..eff97486892fa369223ecde8b3fbe8a24e4aff3a 100644 (file)
@@ -188,6 +188,10 @@ public class Vala.GIRWriter : CodeVisitor {
                        ns.source_reference.file.gir_namespace = gir_namespace;
                        ns.source_reference.file.gir_version = gir_version;
                }
+
+               if (our_namespaces.size == 0) {
+                       Report.error (null, "No suitable namespace found to export for GIR");
+               }
        }
 
        private void write_doc (string? comment) {