From 8703f17c1fb839060b5ffecc0edb5eb4759fdcca Mon Sep 17 00:00:00 2001 From: Vlad Bokov Date: Fri, 31 May 2019 12:14:04 +0700 Subject: [PATCH] Specify search places in error --- main/src/data_test/loader.clj | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main/src/data_test/loader.clj b/main/src/data_test/loader.clj index 30cd372..5d058ab 100644 --- a/main/src/data_test/loader.clj +++ b/main/src/data_test/loader.clj @@ -62,10 +62,11 @@ (s/defn load-data-test-specs :- [RuntimeTestDataSpec] [name-key :- s/Keyword] - (let [data-test-specs (filter some? - (map load-data-test-spec (data-test-spec-file-names name-key)))] + (let [locations (data-test-spec-file-names name-key) + data-test-specs (filter some? (map load-data-test-spec locations))] (if (empty? data-test-specs) (throw (ex-info (str "Could not find test spec on " name-key) {:message "Could not find test spec" - :name-key name-key})) + :name-key name-key + :locations locations})) (into [] data-test-specs))))