1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Various improvements

This commit is contained in:
Laurent Cozic
2017-07-15 23:47:11 +01:00
parent 472dee05ea
commit 22cb2fdfbe
11 changed files with 34 additions and 11 deletions

View File

@ -170,8 +170,8 @@ class OneDriveApi {
if (error.message == 'Network request failed') {
// Unfortunately the error 'Network request failed' doesn't have a type
// or error code, so hopefully that message won't change and is not localized
this.logger().info('Got error below - retrying...');
this.logger().info(error);
this.logger().warn('Got error below - retrying...');
this.logger().warn(error);
await time.sleep((i + 1) * 3);
continue;
} else {
@ -202,8 +202,8 @@ class OneDriveApi {
// type: 'system',
// errno: 'EAGAIN',
// code: 'EAGAIN' }
this.logger().info('Got error below - retrying...');
this.logger().info(error);
this.logger().warn('Got error below - retrying...');
this.logger().warn(error);
await time.sleep((i + 1) * 3);
continue;
} else if (error.code == 'itemNotFound' && method == 'DELETE') {