summaryrefslogtreecommitdiffstats
path: root/elaborate.cxx
diff options
context:
space:
mode:
authorDave Brolley <brolley@redhat.com>2010-02-15 16:35:07 -0500
committerDave Brolley <brolley@redhat.com>2010-02-15 16:35:07 -0500
commit0e89b41eb229eae1f66d8edc1defd5e5ae097529 (patch)
tree4399079f666bde82cfbeefbcc96882c4251e3bc4 /elaborate.cxx
parent4240be911e37b817727ecb33f321f0ea389ede61 (diff)
downloadsystemtap-steved-0e89b41eb229eae1f66d8edc1defd5e5ae097529.tar.gz
systemtap-steved-0e89b41eb229eae1f66d8edc1defd5e5ae097529.tar.xz
systemtap-steved-0e89b41eb229eae1f66d8edc1defd5e5ae097529.zip
elaborate.cxx: Point to the location of the error when rejecting
probe points.
Diffstat (limited to 'elaborate.cxx')
-rw-r--r--elaborate.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/elaborate.cxx b/elaborate.cxx
index b8bff286..88a856c2 100644
--- a/elaborate.cxx
+++ b/elaborate.cxx
@@ -374,7 +374,8 @@ match_node::find_and_build (systemtap_session& s,
if (s.unprivileged && ! unprivileged_ok)
{
- throw semantic_error (string("probe point is not allowed for unprivileged users"));
+ throw semantic_error (string("probe point is not allowed for unprivileged users"),
+ loc->components.back()->tok);
}
map<string, literal *> param_map;