Pipe:readerror( ) method
Reads an error message asynchronously from the Pipe (from the standard error stream of the executed process).
Return value
Returns a Task instance.Once finished, the Task will return a
string
or nil
if the standard error of the executed process is empty.
Example
-- error : invalid option "Z"
local pipe = sys.Pipe('cmd.exe /C dir /Z')
-- Shows error message
local output = await(pipe:readerror())
print(output)