aboutsummaryrefslogtreecommitdiffstats
path: root/lib/common_test/src/ct_testspec.erl
diff options
context:
space:
mode:
authorPeter Andersson <[email protected]>2013-06-04 20:08:59 +0200
committerPeter Andersson <[email protected]>2013-06-05 16:13:54 +0200
commit4f5f57d0bdd8b5ba9902c868758130a660c22606 (patch)
tree98e9c551e1099cf0911a198ef03bdc912bbca0e6 /lib/common_test/src/ct_testspec.erl
parent1afd0898f2c868df20e074ef3831dad0eac69095 (diff)
downloadotp-4f5f57d0bdd8b5ba9902c868758130a660c22606.tar.gz
otp-4f5f57d0bdd8b5ba9902c868758130a660c22606.tar.bz2
otp-4f5f57d0bdd8b5ba9902c868758130a660c22606.zip
Improve error report if crash due to bad testspec
Diffstat (limited to 'lib/common_test/src/ct_testspec.erl')
-rw-r--r--lib/common_test/src/ct_testspec.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/common_test/src/ct_testspec.erl b/lib/common_test/src/ct_testspec.erl
index 71b03c0ea6..a3a47db41c 100644
--- a/lib/common_test/src/ct_testspec.erl
+++ b/lib/common_test/src/ct_testspec.erl
@@ -262,8 +262,10 @@ collect_tests_from_file(Specs,Nodes,Relaxed) when is_list(Nodes) ->
[filter_and_convert(Joined) |
filter_and_convert(SeparateTestSpecs)]
catch
+ _:Error={error,_} ->
+ Error;
_:Error ->
- Error
+ {error,Error}
end.
filter_and_convert(Joined) when is_tuple(Joined) ->