From 15eb263e54ac53ffc909e98faf102c000b96e503 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 8 Nov 2015 13:03:41 +0000 Subject: Give error if --run arg does not match a scenario --- yarn | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'yarn') diff --git a/yarn b/yarn index bcd22d3..3ca0bd5 100755 --- a/yarn +++ b/yarn @@ -292,6 +292,10 @@ class YarnRunner(cliapp.Application): if matches(s.name, name) and s not in result: result.append(s) break + else: + raise cliapp.AppException( + 'Requested scenario %s does not exist' % + name) return result return scenarios -- cgit v1.2.1