From 5505e5f064461084b537e2a0984393298eef9db6 Mon Sep 17 00:00:00 2001 From: Tom Sundstrom Date: Thu, 24 Aug 2017 02:39:04 +0300 Subject: [PATCH] docs(): adjust log messages in photo library example callbacks (#1851) * Move error message to the error callback * Log a debug message in complete callback --- src/@ionic-native/plugins/photo-library/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/@ionic-native/plugins/photo-library/index.ts b/src/@ionic-native/plugins/photo-library/index.ts index 362ffeefd..f5be78c5b 100644 --- a/src/@ionic-native/plugins/photo-library/index.ts +++ b/src/@ionic-native/plugins/photo-library/index.ts @@ -31,8 +31,8 @@ import { Injectable } from '@angular/core'; * console.log(libraryItem.albumIds); // array of ids of appropriate AlbumItem, only of includeAlbumsData was used * }); * }, - * error: err => {}, - * complete: () => { console.log('could not get photos'); } + * error: err => { console.log('could not get photos'); }, + * complete: () => { console.log('done getting photos'); } * }); * }) * .catch(err => console.log('permissions weren\'t granted'));