fix(frontends/lean/parser): incorrect error message

This commit is contained in:
Leonardo de Moura 2015-05-08 18:13:44 -07:00
parent e59456c19f
commit e6566e5814

View file

@ -111,7 +111,7 @@ parser::parser(environment const & env, io_state const & ios,
m_theorem_queue(*this, num_threads > 1 ? num_threads - 1 : 0),
m_snapshot_vector(sv), m_info_manager(im), m_cache(nullptr), m_index(nullptr) {
m_profile = ios.get_options().get_bool("profile", false);
if (num_threads > 1)
if (num_threads > 1 && m_profile)
throw exception("option --profile cannot be used when theorems are compiled in parallel");
m_has_params = false;
m_keep_theorem_mode = tmode;