From f2db9119e41e6f137733211daf0e1b8e7af95e60 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Wed, 31 Aug 2022 18:00:38 -0700 Subject: [PATCH] print out which container didn't have all it's files added --- ui/fixtures/cmd.container.json | 2 +- ui/medashare/cli.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/fixtures/cmd.container.json b/ui/fixtures/cmd.container.json index dda1ba4..0605ea5 100644 --- a/ui/fixtures/cmd.container.json +++ b/ui/fixtures/cmd.container.json @@ -15,7 +15,7 @@ { "title": "import partial container", "cmd": [ "container", "somedir.torrent" ], - "stderr": "Warning, incomple/invalid files, not added:\n\t'filea.txt'\n\t'filec.txt'\n\t'filee.txt'\n" + "stderr": "Warning, incomple/invalid files, not added for 'somedir.torrent':\n\t'filea.txt'\n\t'filec.txt'\n\t'filee.txt'\n" }, { "special": "verify store object cnt", diff --git a/ui/medashare/cli.py b/ui/medashare/cli.py index 070ed55..2339f6a 100644 --- a/ui/medashare/cli.py +++ b/ui/medashare/cli.py @@ -951,7 +951,7 @@ def cmd_container(options): good, bad = validate_file(i) if bad: - print('Warning, incomple/invalid files, not added:', + print('Warning, incomple/invalid files, not added for %s:' % repr(i), file=sys.stderr) print('\n'.join('\t%s' % repr(str(pathlib.Path(*x.parts[1:]))) for x in