aboutsummaryrefslogtreecommitdiff
path: root/build/b.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build/b.cxx')
-rw-r--r--build/b.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/build/b.cxx b/build/b.cxx
index 665fac8..8ea9094 100644
--- a/build/b.cxx
+++ b/build/b.cxx
@@ -186,17 +186,17 @@ main (int argc, char* argv[])
s += ' ';
}
- istringstream is (s);
- is.exceptions (istringstream::failbit | istringstream::badbit);
- parser p;
-
try
{
+ istringstream is (s);
+ is.exceptions (istringstream::failbit | istringstream::badbit);
+
+ parser p;
bspec = p.parse_buildspec (is, "<buildspec>");
}
- catch (const std::ios_base::failure&)
+ catch (const istringstream::failure&)
{
- fail << "failed to parse buildspec string";
+ fail << "unable to parse buildspec '" << s << "'";
}
}