summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-04 10:40:46 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-07-04 12:19:13 +0100
commitf2c04b450fcbd5e9aa4d18ba047fa70f6becdb9c (patch)
tree0cfb315c87853e4a86ccfde82c0425f81892a97f /scripts
parent83b01091499e047b004f16f4716f098741e66634 (diff)
downloadpoky-f2c04b450fcbd5e9aa4d18ba047fa70f6becdb9c.tar.gz
send-error-report: Fix test for name > 50 chars
A name > 50 chars causes a 500 internal server error and should be warned to the user but the code to do so currently doesn't work. Fix the logic. (From OE-Core rev: 844f8d46f522a994dbff00245c4ffb07452577a8) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/send-error-report2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/send-error-report b/scripts/send-error-report
index 02014ba9d8..8939f5f594 100755
--- a/scripts/send-error-report
+++ b/scripts/send-error-report
@@ -88,7 +88,7 @@ def prepare_data(args):
88 log.error("Name needs to be provided either via "+userfile+" or as an argument (-n).") 88 log.error("Name needs to be provided either via "+userfile+" or as an argument (-n).")
89 sys.exit(1) 89 sys.exit(1)
90 90
91 while len(args.name) <= 0 and len(args.name) < 50: 91 while len(args.name) <= 0 or len(args.name) > 50:
92 print("\nName needs to be given and must not more than 50 characters.") 92 print("\nName needs to be given and must not more than 50 characters.")
93 args.name, args.email = ask_for_contactdetails() 93 args.name, args.email = ask_for_contactdetails()
94 94