Fix: then -> catch

This commit is contained in:
eight 2019-09-30 16:26:40 +08:00
parent ee6d2b805d
commit 8f4588b247

View File

@ -60,7 +60,7 @@ const sync = (() => {
stop,
put: ctrl.put,
delete: ctrl.delete,
syncNow: () => ctrl.syncNow().then(handle401Error)
syncNow: () => ctrl.syncNow().catch(handle401Error)
};
function handle401Error(err) {