From 989c7587deb2234052a420bae01a96da454351d7 Mon Sep 17 00:00:00 2001 From: David Habinsky Date: Fri, 16 Aug 2024 11:35:47 -0600 Subject: [PATCH] removed remaining std::endl of NX_PRINT lines --- src/plugin/settings/engine.cpp | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/plugin/settings/engine.cpp b/src/plugin/settings/engine.cpp index 9472f87..8cb704b 100644 --- a/src/plugin/settings/engine.cpp +++ b/src/plugin/settings/engine.cpp @@ -262,8 +262,7 @@ Result Engine::settingsReceived() fs::permissions(mountDir, fs::perms::all, fs::perm_options::add, errCode); if (errCode) { - NX_PRINT << "Unable to set mount directory permission with error: " + errCode.message() - << std::endl; + NX_PRINT << "Unable to set mount directory permission with error: " + errCode.message(); return error(ErrorCode::internalError, "Unable to set mount directory permission with error: " + errCode.message()); } @@ -301,8 +300,7 @@ Result Engine::settingsReceived() fs::permissions(fileCacheDir, fs::perms::all, fs::perm_options::add, errCode); if (errCode) { - NX_PRINT << "Unable to set mount directory permission with error: " + errCode.message() - << std::endl; + NX_PRINT << "Unable to set mount directory permission with error: " + errCode.message(); return error(ErrorCode::internalError, "Unable to set mount directory permission with error: " + errCode.message()); } @@ -314,16 +312,14 @@ Result Engine::settingsReceived() if (!fs::create_directories(fileCacheDir, errCode)) { NX_PRINT << "Unable to create file cache directory " + fileCacheDir + - " with error: " + errCode.message() - << std::endl; + " with error: " + errCode.message(); return error(ErrorCode::internalError, "Unable to create file cache directory " + fileCacheDir + " with error: " + errCode.message()); } fs::permissions(fileCacheDir, fs::perms::all, fs::perm_options::add, errCode); if (errCode) { - NX_PRINT << "Unable to set file cache directory permissions with error: " + errCode.message() - << std::endl; + NX_PRINT << "Unable to set file cache directory permissions with error: " + errCode.message(); return error(ErrorCode::internalError, "Unable to set file cache directory permissions with error: " + errCode.message()); } @@ -371,8 +367,7 @@ Result Engine::settingsReceived() IPluginDiagnosticEvent::Level::error, "Plugin Credential or Endpoint Error", "Error with cloud credentials or incorrect endpoint: " + parseCloudfuseError(dryRunRet.output)); NX_PRINT << "Error with cloud credentials or incorrect endpoint: " + - parseCloudfuseError(dryRunRet.output) - << std::endl; + parseCloudfuseError(dryRunRet.output); return error(ErrorCode::otherError, "Error with cloud credentials or incorrect endpoint: " + parseCloudfuseError(dryRunRet.output)); } @@ -399,8 +394,7 @@ Result Engine::settingsReceived() Engine::pushPluginDiagnosticEvent(IPluginDiagnosticEvent::Level::error, "Plugin Error", "Unable to validate credentials with error: " + parseCloudfuseError(dryRunRet.output)); - NX_PRINT << "Unable to validate credentials with error: " + parseCloudfuseError(dryRunRet.output) - << std::endl; + NX_PRINT << "Unable to validate credentials with error: " + parseCloudfuseError(dryRunRet.output); return error(ErrorCode::otherError, "Unable to validate credentials with error: " + parseCloudfuseError(dryRunRet.output)); }