If pick -thread is used with a message without a message-id
or a references header field pick now fails. This prevents
falling back to all messages as default.
# All messages should be go to stdout
cat > $expected_out <<EOF
-5
+0
EOF
# Nothing should to go stderr
-cat /dev/null > $expected_err
+cat > $expected_err <<EOF
+pick: message 5 is not part of a thread
+EOF
pick -thread 5 > $actual_out 2> $actual_err
-diff -u $expected_err $actual_err
-diff -u $expected_out $actual_out
+diff -u $expected_err $actual_err || exit 1
+diff -u $expected_out $actual_out || exit 1
for (i = 0; i < files.size; i++) {
buf = getthreadid(files.msgs[i]);
if (!buf) {
+ adios(EX_DATAERR, NULL, "message %s is not part of a thread", basename(files.msgs[i]));
continue;
}