mirror of
https://github.com/onyx-and-iris/meld-cli.git
synced 2025-07-12 02:11:46 +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) {
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user