diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2020-07-01 12:46:58 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2020-07-01 17:57:53 +0200 |
commit | 9f8fdb7bd7b12c1591e2c118e59ea3154844c960 (patch) | |
tree | 170844f0ddd1e727953398b266644b84e478db2f /wsd/Storage.hpp | |
parent | android: Add support for x86 ABI too. (diff) | |
download | online-9f8fdb7bd7b12c1591e2c118e59ea3154844c960.tar.gz online-9f8fdb7bd7b12c1591e2c118e59ea3154844c960.zip |
tdf#131123 Report back real save result
665b1629de30a4a402c6b10dd542de158db1f428 was not correct, as it reported back
the save result of the internal save (which usually succeeds).
Instead we want to know the save result of the remote storage (WOPI/Webdav).
So report that back instead.
Change-Id: Iaaa42b8c817a19c2c77935a6f81c1951fdf2216c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/97637
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'wsd/Storage.hpp')
-rw-r--r-- | wsd/Storage.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/wsd/Storage.hpp b/wsd/Storage.hpp index 8f07b9229b..d087fb1744 100644 --- a/wsd/Storage.hpp +++ b/wsd/Storage.hpp @@ -132,10 +132,21 @@ public: return _saveAsUrl; } + void setErrorMsg(const std::string &msg) + { + _errorMsg = msg; + } + + const std::string &getErrorMsg() const + { + return _errorMsg; + } + private: Result _result; std::string _saveAsName; std::string _saveAsUrl; + std::string _errorMsg; }; enum class LOOLStatusCode |