1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

Tweaks to make sure Nextcloud driver passes all test units

This commit is contained in:
Laurent Cozic
2018-01-25 21:15:58 +00:00
parent 7ab135c099
commit 8f3fdb3afe
11 changed files with 89 additions and 24 deletions

View File

@@ -195,7 +195,7 @@ class WebDavApi {
if (json['d:error']) {
const code = json['d:error']['s:exception'] ? json['d:error']['s:exception'].join(' ') : response.status;
const message = json['d:error']['s:message'] ? json['d:error']['s:message'].join("\n") : shortResponseText();
throw new JoplinError(message + ' (' + code + ')', response.status);
throw new JoplinError(method + ' ' + path + ': ' + message + ' (' + code + ')', response.status);
}
throw new JoplinError(shortResponseText(), response.status);