return Promise.reject

This commit is contained in:
onyx-and-iris 2025-06-30 12:01:16 +01:00
parent 75520a358b
commit a996846e52

View File

@ -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;