Added quotations to existing sub error message

pull/195/head
Isaac Abadi 5 years ago
parent 52bee8b280
commit c3c7667c17

@ -41,7 +41,7 @@ async function subscribe(sub, user_uid = null) {
url_exists = !!db.get('subscriptions').find({url: sub.url}).value();
if (!sub.name && url_exists) {
logger.error(`Sub with the same URL already exists -- please provide a custom name for this new subscription.`);
logger.error(`Sub with the same URL "${sub.url}" already exists -- please provide a custom name for this new subscription.`);
result_obj.error = 'Subcription with URL ' + sub.url + ' already exists! Custom name is required.';
resolve(result_obj);
return;

Loading…
Cancel
Save