]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vapigen: Report error when omitting --library option
authorJürg Billeter <j@bitron.ch>
Sun, 21 Mar 2010 10:52:08 +0000 (11:52 +0100)
committerJürg Billeter <j@bitron.ch>
Sun, 21 Mar 2010 10:52:08 +0000 (11:52 +0100)
Fixes bug 611322.

vapigen/valavapigen.vala

index 3bcc4d6b2205f601790c0a1971b49566b2dc35d8..686102a3534ce5b0f913c02a8499c6e558ceae41 100644 (file)
@@ -1,6 +1,6 @@
 /* valavapigen.vala
  *
- * Copyright (C) 2006-2009  Jürg Billeter
+ * Copyright (C) 2006-2010  Jürg Billeter
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -157,6 +157,8 @@ class Vala.VAPIGen : Object {
                                        }
                                }
                        }
+               } else {
+                       Report.error (null, "--library option must be specified");
                }
 
                if (packages != null) {