summaryrefslogtreecommitdiffstats
path: root/elaborate.cxx
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-08-10 17:44:31 +0200
committerMark Wielaard <mjw@redhat.com>2009-08-10 17:51:13 +0200
commit8c938ec723aad41c6cafcdef24679d40f310396c (patch)
tree9ca000c90e0a904e225bea66cee224213f2d2f60 /elaborate.cxx
parent81b0eb8071ab21f554f0b154c1c58fcf186888c5 (diff)
downloadsystemtap-steved-8c938ec723aad41c6cafcdef24679d40f310396c.tar.gz
systemtap-steved-8c938ec723aad41c6cafcdef24679d40f310396c.tar.xz
systemtap-steved-8c938ec723aad41c6cafcdef24679d40f310396c.zip
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.
Diffstat (limited to 'elaborate.cxx')
-rw-r--r--elaborate.cxx2
1 files changed, 1 insertions, 1 deletions
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)