fix(shell/lean): only save .olean file if there are no errors
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
eff59211ce
commit
abe12b0631
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ int main(int argc, char ** argv) {
|
|||
lean::interactive in(env, ios, num_threads);
|
||||
in(std::cin, "[stdin]");
|
||||
}
|
||||
if (export_objects) {
|
||||
if (export_objects && ok) {
|
||||
std::ofstream out(output, std::ofstream::binary);
|
||||
export_module(out, env);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue