tasksfile
tasksfile copied to clipboard
Synchronous sh command errors
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.
Most likely cause: https://github.com/pawelgalazka/tasksfile/commit/cfe9410da4602718ab3870ecf41ff324c2ba4f5b
Bump. If this isn't an actual issue, then it's at least a bit unclear from the README.
As a workaround is to set nopipe to true:
sh("myfailingcommand", {
nopipe: true,
async: false
});
This will change stdio to ["inherit", "inherit", "inherit"].