fix(frontends/lean/parser): incorrect error message
This commit is contained in:
parent
e59456c19f
commit
e6566e5814
1 changed files with 1 additions and 1 deletions
|
@ -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_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_snapshot_vector(sv), m_info_manager(im), m_cache(nullptr), m_index(nullptr) {
|
||||||
m_profile = ios.get_options().get_bool("profile", false);
|
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");
|
throw exception("option --profile cannot be used when theorems are compiled in parallel");
|
||||||
m_has_params = false;
|
m_has_params = false;
|
||||||
m_keep_theorem_mode = tmode;
|
m_keep_theorem_mode = tmode;
|
||||||
|
|
Loading…
Reference in a new issue