chore: use base::JoinString to concatenate vector

This commit is contained in:
deepak1556 2018-11-29 08:31:09 +05:30
parent e1336d8453
commit 06a501d4a2

View file

@ -10,6 +10,7 @@
#include "base/command_line.h"
#include "base/logging.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "libplatform/libplatform.h"
#include "native_mate/dictionary.h"
@ -46,11 +47,9 @@ void NodeDebugger::Start() {
node::options_parser::kDisallowedInEnvironment, &errors);
if (!errors.empty()) {
std::string error_str;
for (const auto& error : errors)
error_str += error;
// TODO(jeremy): what's the appropriate behaviour here?
LOG(ERROR) << "Error parsing node options: " << error_str;
LOG(ERROR) << "Error parsing node options: "
<< base::JoinString(errors, " ");
}
// Set process._debugWaitConnect if --inspect-brk was specified to stop