diff options
author | Renato Araujo Oliveira Filho <renato.filho@openbossa.org> | 2009-08-26 14:48:03 -0300 |
---|---|---|
committer | Renato Araujo Oliveira Filho <renato.filho@openbossa.org> | 2009-08-26 14:48:03 -0300 |
commit | 3c06795f3cf8fcee47208f8b0759cd270eaedbb6 (patch) | |
tree | 7f459747b4618c1b661b900623fb3131c18414c2 | |
parent | dfbe29e0a5843c7b6e2132915e24b2602ba52934 (diff) | |
parent | e078392026588073aabe4f75d68c5b174211898a (diff) |
Merge commit 'setanta/unspecifiedtypesystemfile'
-rw-r--r-- | apiextractor.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apiextractor.cpp b/apiextractor.cpp index 97fa2a65d..d257b07f5 100644 --- a/apiextractor.cpp +++ b/apiextractor.cpp @@ -142,8 +142,11 @@ bool ApiExtractor::run() { if (m_builder) return false; - // read typesystem - if (!TypeDatabase::instance()->parseFile(m_typeSystemFileName)) { + + if (m_typeSystemFileName.isEmpty()) { + std::cerr << "You must specify a Type System file." << std::endl; + return false; + } else if (!TypeDatabase::instance()->parseFile(m_typeSystemFileName)) { std::cerr << "Cannot parse file: " << qPrintable(m_typeSystemFileName); return false; } |