aboutsummaryrefslogtreecommitdiff
path: root/build2/utility.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/utility.cxx')
-rw-r--r--build2/utility.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/build2/utility.cxx b/build2/utility.cxx
index ef90084..db0d6b2 100644
--- a/build2/utility.cxx
+++ b/build2/utility.cxx
@@ -31,10 +31,15 @@ namespace build2
ostream&
operator<< (ostream& os, const process_path& p)
{
- os << p.recall_string ();
+ if (p.empty ())
+ os << "<empty>";
+ else
+ {
+ os << p.recall_string ();
- if (!p.effect.empty ())
- os << '@' << p.effect.string (); // Suppress relative().
+ if (!p.effect.empty ())
+ os << '@' << p.effect.string (); // Suppress relative().
+ }
return os;
}