I've just run into a critical error while finishing up the next release of my OS, and that occurs when opening files. You see, I had been opening them with pcall(shell.run,path), which allowed me to specify arguments and use shell.run from within the invoked program. However, when it comes to returning the error to the user via
local ok,contentError=pcall(shell.run,parag) if not ok then olive.throwError(contentError) --This being a function which returns the error message in a window endcontentError is empty even if an error has occurred. Or rather, the error is not caught in the pcall statement.
What I'm asking for is a way to call a program from within another, catch any error it may output and still be able to call shell.run from within the new program. Thanks in advance!














