Commit ce86307a1aa5918810c4eb64344e41c7dc0507c9

Authored by Jay Berkenbilt
1 parent 5f4675bb

Fix typo in error message

libqpdf/QPDFJob_config.cc
@@ -694,7 +694,7 @@ QPDFJob::Config::jobJsonFile(std::string const& parameter) @@ -694,7 +694,7 @@ QPDFJob::Config::jobJsonFile(std::string const& parameter)
694 throw std::runtime_error( 694 throw std::runtime_error(
695 "error with job-json file " + std::string(parameter) + ": " + 695 "error with job-json file " + std::string(parameter) + ": " +
696 e.what() + "\nRun " + this->o.m->message_prefix + 696 e.what() + "\nRun " + this->o.m->message_prefix +
697 - "--job-json-help for information on the file format."); 697 + " --job-json-help for information on the file format.");
698 } 698 }
699 return this; 699 return this;
700 } 700 }
qpdf/qtest/qpdf/bad-bare-option-false-json.out
1 1
2 qpdf: error with job-json file bad-json-bare-option-false.json: .qdf: value must be the empty string 2 qpdf: error with job-json file bad-json-bare-option-false.json: .qdf: value must be the empty string
3 -Run qpdf--job-json-help for information on the file format. 3 +Run qpdf --job-json-help for information on the file format.
4 4
5 For help: 5 For help:
6 qpdf --help=usage usage information 6 qpdf --help=usage usage information
qpdf/qtest/qpdf/bad-choice-mismatch-json.out
1 1
2 qpdf: error with job-json file bad-json-choice-mismatch.json: .objectStreams: unexpected value; expected one of disable, preserve, generate 2 qpdf: error with job-json file bad-json-choice-mismatch.json: .objectStreams: unexpected value; expected one of disable, preserve, generate
3 -Run qpdf--job-json-help for information on the file format. 3 +Run qpdf --job-json-help for information on the file format.
4 4
5 For help: 5 For help:
6 qpdf --help=usage usage information 6 qpdf --help=usage usage information
qpdf/qtest/qpdf/bad-encrypt-duplicate-key-length-json.out
1 1
2 qpdf: error with job-json file bad-json-encrypt-duplicate-key-length.json: exactly one of 40bit, 128bit, or 256bit must be given 2 qpdf: error with job-json file bad-json-encrypt-duplicate-key-length.json: exactly one of 40bit, 128bit, or 256bit must be given
3 -Run qpdf--job-json-help for information on the file format. 3 +Run qpdf --job-json-help for information on the file format.
4 4
5 For help: 5 For help:
6 qpdf --help=usage usage information 6 qpdf --help=usage usage information
qpdf/qtest/qpdf/bad-encrypt-missing-password-json.out
1 1
2 qpdf: error with job-json file bad-json-encrypt-missing-password.json: the user and owner password are both required; use the empty string for the user password if you don't want a password 2 qpdf: error with job-json file bad-json-encrypt-missing-password.json: the user and owner password are both required; use the empty string for the user password if you don't want a password
3 -Run qpdf--job-json-help for information on the file format. 3 +Run qpdf --job-json-help for information on the file format.
4 4
5 For help: 5 For help:
6 qpdf --help=usage usage information 6 qpdf --help=usage usage information
qpdf/qtest/qpdf/bad-encrypt-no-key-length-json.out
1 1
2 qpdf: error with job-json file bad-json-encrypt-no-key-length.json: exactly one of 40bit, 128bit, or 256bit must be given; an empty dictionary may be supplied for one of them to set the key length without imposing any restrictions 2 qpdf: error with job-json file bad-json-encrypt-no-key-length.json: exactly one of 40bit, 128bit, or 256bit must be given; an empty dictionary may be supplied for one of them to set the key length without imposing any restrictions
3 -Run qpdf--job-json-help for information on the file format. 3 +Run qpdf --job-json-help for information on the file format.
4 4
5 For help: 5 For help:
6 qpdf --help=usage usage information 6 qpdf --help=usage usage information
qpdf/qtest/qpdf/bad-json-error-json.out
1 1
2 qpdf: error with job-json file bad-json-json-error.json: JSON: offset 83: unexpected dictionary end delimiter 2 qpdf: error with job-json file bad-json-json-error.json: JSON: offset 83: unexpected dictionary end delimiter
3 -Run qpdf--job-json-help for information on the file format. 3 +Run qpdf --job-json-help for information on the file format.
4 4
5 For help: 5 For help:
6 qpdf --help=usage usage information 6 qpdf --help=usage usage information
qpdf/qtest/qpdf/bad-pages-no-file-json.out
1 1
2 qpdf: error with job-json file bad-json-pages-no-file.json: file is required in page specification 2 qpdf: error with job-json file bad-json-pages-no-file.json: file is required in page specification
3 -Run qpdf--job-json-help for information on the file format. 3 +Run qpdf --job-json-help for information on the file format.
4 4
5 For help: 5 For help:
6 qpdf --help=usage usage information 6 qpdf --help=usage usage information
qpdf/qtest/qpdf/bad-schema-error-json.out
1 1
2 qpdf: error with job-json file bad-json-schema-error.json: qpdf: job json has errors: 2 qpdf: error with job-json file bad-json-schema-error.json: qpdf: job json has errors:
3 top-level object: key "potato" is not present in schema but appears in object 3 top-level object: key "potato" is not present in schema but appears in object
4 -Run qpdf--job-json-help for information on the file format. 4 +Run qpdf --job-json-help for information on the file format.
5 5
6 For help: 6 For help:
7 qpdf --help=usage usage information 7 qpdf --help=usage usage information