| 101 | /// if (v) contains an error, then appends given file name to that error |
| 102 | template<typename T> |
| 103 | [[nodiscard]] inline Expected<T> addFileNameInError( Expected<T> v, const std::filesystem::path & file ) |
| 104 | { |
| 105 | if ( !v.has_value() ) |
| 106 | v = unexpected( v.error() + ": " + utf8string( file ) ); |
| 107 | return v; |
| 108 | } |
| 109 | |
| 110 | /// in case of empty vector, returns "Empty" |
| 111 | /// in case of single input file.ext, returns ".EXT" |
no test coverage detected