Only call UTF8ToUTF16 on Windows

This commit is contained in:
Kevin Sawicki 2016-10-06 09:14:16 -07:00
parent 84b7bb29f0
commit 30c6ca6751
2 changed files with 8 additions and 3 deletions

View file

@ -601,7 +601,7 @@ base::FilePath App::GetPath(mate::Arguments* args, const std::string& name) {
if (key >= 0)
succeed = PathService::Get(key, &path);
if (!succeed)
args->ThrowError("Failed to get path");
args->ThrowError("Failed to get '" + name + "' path");
return path;
}
@ -609,7 +609,7 @@ void App::SetPath(mate::Arguments* args,
const std::string& name,
const base::FilePath& path) {
if (!path.IsAbsolute()) {
args->ThrowError("path must be absolute");
args->ThrowError("Path must be absolute");
return;
}