summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)