diff options
author | Tor Brede Vekterli <vekterli@oath.com> | 2018-09-07 12:39:54 +0000 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@oath.com> | 2018-09-07 12:39:54 +0000 |
commit | b74cd75dad39aa5e610c896cdf1a4a66fec1dc9d (patch) | |
tree | 2e63a4999e8a1577bda2eacf467580971e01c9cd /vespalib | |
parent | 0dca6909c9cb05eedd3cd0044ce37ebe6b1a3e1a (diff) |
Make error message less specific since it might be triggered in other scenarios
Diffstat (limited to 'vespalib')
-rw-r--r-- | vespalib/src/tests/net/tls/transport_options/transport_options_reading_test.cpp | 2 | ||||
-rw-r--r-- | vespalib/src/vespa/vespalib/net/tls/transport_security_options_reading.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vespalib/src/tests/net/tls/transport_options/transport_options_reading_test.cpp b/vespalib/src/tests/net/tls/transport_options/transport_options_reading_test.cpp index 859d2cc90f2..1ce4a4353d0 100644 --- a/vespalib/src/tests/net/tls/transport_options/transport_options_reading_test.cpp +++ b/vespalib/src/tests/net/tls/transport_options/transport_options_reading_test.cpp @@ -20,7 +20,7 @@ TEST("can load TLS credentials via config file") { TEST("missing JSON file throws exception") { EXPECT_EXCEPTION(read_options_from_json_file("missing_config.json"), IllegalArgumentException, - "TLS config file 'missing_config.json' does not exist"); + "TLS config file 'missing_config.json' could not be read"); } TEST("bad JSON content throws exception") { diff --git a/vespalib/src/vespa/vespalib/net/tls/transport_security_options_reading.cpp b/vespalib/src/vespa/vespalib/net/tls/transport_security_options_reading.cpp index 4767b5d4fbd..05cfc797e51 100644 --- a/vespalib/src/vespa/vespalib/net/tls/transport_security_options_reading.cpp +++ b/vespalib/src/vespa/vespalib/net/tls/transport_security_options_reading.cpp @@ -94,7 +94,7 @@ std::unique_ptr<TransportSecurityOptions> read_options_from_json_string(const ve std::unique_ptr<TransportSecurityOptions> read_options_from_json_file(const vespalib::string& file_path) { MappedFileInput file_input(file_path); if (!file_input.valid()) { - throw IllegalArgumentException(make_string("TLS config file '%s' does not exist", file_path.c_str())); + throw IllegalArgumentException(make_string("TLS config file '%s' could not be read", file_path.c_str())); } return load_from_input(file_input); } |