diff options
author | Mark Wielaard <mjw@redhat.com> | 2009-08-10 17:44:31 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2009-08-10 17:51:13 +0200 |
commit | 8c938ec723aad41c6cafcdef24679d40f310396c (patch) | |
tree | 9ca000c90e0a904e225bea66cee224213f2d2f60 /elaborate.cxx | |
parent | 81b0eb8071ab21f554f0b154c1c58fcf186888c5 (diff) | |
download | systemtap-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.cxx | 2 |
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) |