From 8c938ec723aad41c6cafcdef24679d40f310396c Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Mon, 10 Aug 2009 17:44:31 +0200 Subject: Only add extra error on no probes found if no previous errors already shown. * elaborate.cxx (semantic_pass): Don't add "no probes found" if session already had other errors. --- elaborate.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elaborate.cxx b/elaborate.cxx index 93500239..1d7f7930 100644 --- a/elaborate.cxx +++ b/elaborate.cxx @@ -1455,7 +1455,7 @@ semantic_pass (systemtap_session& s) if (rc == 0) rc = semantic_pass_vars (s); if (rc == 0) rc = semantic_pass_stats (s); - if (s.probes.size() == 0 && !s.listing_mode) + if (s.num_errors() == 0 && s.probes.size() == 0 && !s.listing_mode) throw semantic_error ("no probes found"); } catch (const semantic_error& e) -- cgit