mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-15 02:11:28 +03:00
Added quotations to existing sub error message
This commit is contained in:
@@ -41,7 +41,7 @@ async function subscribe(sub, user_uid = null) {
|
|||||||
url_exists = !!db.get('subscriptions').find({url: sub.url}).value();
|
url_exists = !!db.get('subscriptions').find({url: sub.url}).value();
|
||||||
|
|
||||||
if (!sub.name && url_exists) {
|
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.';
|
result_obj.error = 'Subcription with URL ' + sub.url + ' already exists! Custom name is required.';
|
||||||
resolve(result_obj);
|
resolve(result_obj);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user