You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have many places where we just assume that a file exists, say, when we create a mio::mmap_source, which then fails with simply No such file exists or something similar if the file is missing. It's difficult to debug, and more importantly, it's very confusing to the end user. We should at least have a function resolve_path(str) that throws a more informative error message. We can also think of having another function resolve_path(path, msgfmt, args...) that would use fmt to display message, and some specialized functions that repeat many times, say:
We have many places where we just assume that a file exists, say, when we create a
mio::mmap_source
, which then fails with simplyNo such file exists
or something similar if the file is missing. It's difficult to debug, and more importantly, it's very confusing to the end user. We should at least have a functionresolve_path(str)
that throws a more informative error message. We can also think of having another functionresolve_path(path, msgfmt, args...)
that would usefmt
to display message, and some specialized functions that repeat many times, say:But I'm also open to other suggestions.
The text was updated successfully, but these errors were encountered: