mirror of
https://github.com/onyx-and-iris/meld-cli.git
synced 2025-07-12 10:21:45 +00:00
return Promise.reject
This commit is contained in:
parent
75520a358b
commit
a996846e52
@ -75,7 +75,7 @@ function sceneSwitch(channel, sceneName) {
|
|||||||
|
|
||||||
function sceneCurrent(channel) {
|
function sceneCurrent(channel) {
|
||||||
if (!channel.objects || !channel.objects.meld) {
|
if (!channel.objects || !channel.objects.meld) {
|
||||||
throw new Error("Meld object not found in channel.");
|
return Promise.reject(new Error("Meld object not found in channel."));
|
||||||
}
|
}
|
||||||
|
|
||||||
const meld = channel.objects.meld;
|
const meld = channel.objects.meld;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user