Moved error-msg to proper place.
@@ -300,7 +300,11 @@ export function needCreate(draft, nodeUri) {
theirNeeds: {},
})
})
- });
+ })
+ .catch(err => {
+ //TODO user-visible error message / error recovery mechanisms
+ console.error(`Creating temporary account ${email} has failed due to `, err);
+ })
}
hasAccountPromise
@@ -310,10 +314,6 @@ export function needCreate(draft, nodeUri) {
payload: {eventUri, message, needUri}
});
})
- .catch(err => {
- //TODO user-visible error message / error recovery mechanisms
- console.error(`Creating temporary account ${email} has failed due to `, err);
- })
}
}
