Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - chore(*): better error message on wrong import #253

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/util/lean_path.cpp
Expand Up @@ -17,7 +17,8 @@ Author: Leonardo de Moura, Gabriel Ebner

namespace lean {
lean_file_not_found_exception::lean_file_not_found_exception(std::string const & fname):
exception(sstream() << "file '" << fname << "' not found in the LEAN_PATH"),
exception(sstream() << "file '" << fname << "' not found in the search path\n"
<< "Use 'lean --path' to see where lean is looking, or https://leanproject-community.github.io/file-not-found for more"),
gebner marked this conversation as resolved.
Show resolved Hide resolved
m_fname(fname) {}

static char const * g_default_file_name = LEAN_DEFAULT_MODULE_FILE_NAME;
Expand Down