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

Document/Improve include_mmd! file reading and panic message #46

Closed
mattsse opened this issue Jan 11, 2024 · 1 comment
Closed

Document/Improve include_mmd! file reading and panic message #46

mattsse opened this issue Jan 11, 2024 · 1 comment

Comments

@mattsse
Copy link

mattsse commented Jan 11, 2024

currently, the value of the include_mmd attribute (the path) is just directly:

let data = std::fs::read_to_string(path).expect("Unable to read mermaid file");

though it's unclear what the current path in this context is when invoked via cargo doc in a workspace.

At the very least the panic should include the current working dir and the path that does not exist.

@mattsse
Copy link
Author

mattsse commented Jan 12, 2024

closed by #47

@mattsse mattsse closed this as completed Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant