projects
/
platform
/
core
/
api
/
webapi-plugins.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e20329
)
[Filesystem] Fix return on error in FileWriteString and FileWriteBytes
73/169573/1
author
Jakub Skowron
<j.skowron@samsung.com>
Wed, 7 Feb 2018 14:02:53 +0000
(15:02 +0100)
committer
Jakub Skowron
<j.skowron@samsung.com>
Wed, 7 Feb 2018 14:12:30 +0000
(15:12 +0100)
Change-Id: I0377b1a7eaa60a1b5d50c759005d2c6063400332
Signed-off-by: Jakub Skowron <j.skowron@samsung.com>
src/filesystem/filesystem_instance.cc
patch
|
blob
|
history
diff --git
a/src/filesystem/filesystem_instance.cc
b/src/filesystem/filesystem_instance.cc
index
eaceadc
..
fbd555f
100644
(file)
--- a/
src/filesystem/filesystem_instance.cc
+++ b/
src/filesystem/filesystem_instance.cc
@@
-397,7
+397,9
@@
void FilesystemInstance::FileWriteString(const picojson::value& args, picojson::
} catch (std::runtime_error& e) {
LoggerE("Cannot write to file %s, cause: %s", location.c_str(), e.what());
PrepareError(FilesystemError::Other, out);
+ return;
}
+
ReportSuccess(out);
}
@@
-421,7
+423,9
@@
void FilesystemInstance::FileWriteBytes(const picojson::value& args, picojson::o
} catch (std::runtime_error& e) {
LoggerE("Cannot write to %s, cause: %s", location.c_str(), e.what());
PrepareError(FilesystemError::Other, out);
+ return;
}
+
ReportSuccess(out);
}