tiled icon indicating copy to clipboard operation
tiled copied to clipboard

Print output from errors coming from subprocesses in `tiled serve config`?

Open pbeaucage opened this issue 1 year ago • 0 comments

While trying to serve an existing catalog from filesystem, I've noticed a few times that if an underlying call inside tiled serve config ... fails (for instance: tiled catalog init --if-not-exist), the details of that error don't bubble out to the console. Instead, you get a generic error from subprocess:

subprocess.CalledProcessError: Command 
'['/path/to/env/bin/python3.9', '-m', 'tiled', 'catalog', 'init', '--if-not-exists', 'catalog.db']' returned non-zero exit status 1.

A savvy user will know to run that command alone and find out that the SQLite catalog version doesn't match the local tiled version, but it save a debugging step (and potentially a confusing one for a novice user) if the stderr output from the subprocess call was printed to the console. Are there any downsides to doing this or issues it would cause?

pbeaucage avatar Oct 07 '24 21:10 pbeaucage