From d46c685133b290195e121f86c599fc6a973a1189 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vi=CC=81tor=20Galva=CC=83o?= Date: Tue, 28 Mar 2023 17:20:35 +0100 Subject: [PATCH] Replace deprecated readDataToEndOfFile with readDataToEndOfFileAndReturnError --- Workflow/info.plist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Workflow/info.plist b/Workflow/info.plist index fd7e46c..29a60f3 100644 --- a/Workflow/info.plist +++ b/Workflow/info.plist @@ -239,7 +239,7 @@ task.executableURL = $.NSURL.alloc.initFileURLWithPath("/usr/bin/networkQuality" task.standardOutput = stdout task.launchAndReturnError(false) -const dataOut = stdout.fileHandleForReading.readDataToEndOfFile +const dataOut = stdout.fileHandleForReading.readDataToEndOfFileAndReturnError(false) const stringOut = $.NSString.alloc.initWithDataEncoding(dataOut, $.NSUTF8StringEncoding).js // Prepare JSON