Skip to content

Commit daeddde

Browse files
committed
Fail if config file does not exist (remove default).
1 parent 89762a8 commit daeddde

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/parser.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525

2626
#define BC_HTTP_SERVER_NAME "libbitcoin/4.0"
2727

28-
std::filesystem::path config_default_path() NOEXCEPT
29-
{
30-
return { "libbitcoin/bn.cfg" };
31-
}
28+
////std::filesystem::path config_default_path() NOEXCEPT
29+
////{
30+
//// return { "libbitcoin/bn.cfg" };
31+
////}
3232

3333
namespace libbitcoin {
3434
namespace node {
@@ -300,7 +300,7 @@ options_metadata parser::load_environment() THROWS
300300
// This composes with the cmdline options and inits to default path.
301301
BN_CONFIG_VARIABLE,
302302
value<std::filesystem::path>(&configured.file)->composing()
303-
->default_value(config_default_path()),
303+
/*->default_value(config_default_path())*/,
304304
"The path to the configuration settings file."
305305
);
306306

0 commit comments

Comments
 (0)