It might not be immediately obvious to users that they have specified an incorrect kernel version. So throw a more helpful error message explaining where to find the appropriate documentation on kernel version specification.
Signed-off-by: Lucas Meneghel Rodrigues <[email protected]> --- client/kernelexpand.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/kernelexpand.py b/client/kernelexpand.py index 18c766d..2e73067 100755 --- a/client/kernelexpand.py +++ b/client/kernelexpand.py @@ -217,7 +217,10 @@ def decompose_kernel(kernel): if patch_list: kernel_patches.insert(0, patch_list) if not len(kernel_patches): - raise NameError('Unknown kernel: %s' % kernel) + doc_url = 'https://github.com/autotest/autotest/wiki/KernelSpecification' + raise NameError("Kernel '%s' not found. " + "Check %s for kernel spec docs." % + (kernel, doc_url)) return kernel_patches -- 1.7.10.4 _______________________________________________ Autotest mailing list [email protected] http://test.kernel.org/cgi-bin/mailman/listinfo/autotest
