tasksfile icon indicating copy to clipboard operation
tasksfile copied to clipboard

Synchronous sh command errors

Open mminglis opened this issue 6 years ago • 3 comments

Hi! Feel I am missing something simple... how you do you get synchronous shell command errors to print to console. If an async command fails the correct error is printed, but if it is synchronous you get a ShellError: Command failed without any info passed from the script.

mminglis avatar May 18 '19 01:05 mminglis

Most likely cause: https://github.com/pawelgalazka/tasksfile/commit/cfe9410da4602718ab3870ecf41ff324c2ba4f5b

muntasirsyed avatar Nov 11 '19 11:11 muntasirsyed

Bump. If this isn't an actual issue, then it's at least a bit unclear from the README.

tjklemz avatar Aug 21 '20 00:08 tjklemz

As a workaround is to set nopipe to true:

sh("myfailingcommand", {
    nopipe: true,
    async: false
});

This will change stdio to ["inherit", "inherit", "inherit"].

ljani avatar Nov 10 '20 11:11 ljani