File tree 3 files changed +5
-3
lines changed
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -78,11 +78,11 @@ ConfigImpl(
78
78
namespace path = llvm::sys::path;
79
79
80
80
if (! files::isAbsolute (workingDir_))
81
- throw Error (" path \" {}\" is not absolute" , workingDir_);
81
+ throw Error (" working path \" {}\" is not absolute" , workingDir_);
82
82
workingDir = files::makeDirsy (files::normalizePath (workingDir_));
83
83
84
84
if (auto err = files::requireDirectory (addonsDir_))
85
- throw Error (" path \" {}\" is not absolute" , addonsDir_);
85
+ throw Error (" addons path \" {}\" is not absolute" , addonsDir_);
86
86
MRDOX_ASSERT (files::isDirsy (addonsDir_));
87
87
addonsDir = addonsDir_;
88
88
Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ loadConfigString(
255
255
std::string_view addonsDir,
256
256
std::string_view configYaml)
257
257
{
258
- return createConfigFromYAML (workingDir, configYaml, " " );
258
+ return createConfigFromYAML (workingDir, addonsDir, configYaml );
259
259
}
260
260
261
261
} // mrdox
Original file line number Diff line number Diff line change @@ -145,6 +145,8 @@ makeConfig(
145
145
std::error_code ec;
146
146
auto config = loadConfigString (
147
147
workingDir, toolArgs.addonsDir , configYaml);
148
+ if (!config)
149
+ reportError (config.getError (), " load the configuration string" );
148
150
MRDOX_ASSERT (config);
149
151
return *config;
150
152
}
You can’t perform that action at this time.
0 commit comments