Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 99d1105d authored by Simon Chan's avatar Simon Chan
Browse files

fix(adb-scrcpy): throw error when getDisplays fails

parent 7f2a09c3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -85,6 +85,10 @@ export class AdbScrcpyOptions1_16 extends AdbScrcpyOptions<
            throw new Error("Unexpected server output");
        } catch (e) {
            if (e instanceof AdbScrcpyExitedError) {
                if (e.output[0]?.startsWith("[server] ERROR:")) {
                    throw e;
                }

                const displays: ScrcpyDisplay[] = [];
                for (const line of e.output) {
                    const display = options.parseDisplay(line);