diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-30 20:15:18 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-01-30 20:15:18 +0200 |
commit | 38a151f6b970f966e11b1843203e9ac0e372422d (patch) | |
tree | bdf71d6d1a6ab3de9e0424966edbebf0cdc038d1 /bpkg | |
parent | f23cd3159444361233b257ab8341b260b378064e (diff) |
Print <empty-version> instead of throwing
Diffstat (limited to 'bpkg')
-rw-r--r-- | bpkg/manifest | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bpkg/manifest b/bpkg/manifest index d932b2a..5d19ea5 100644 --- a/bpkg/manifest +++ b/bpkg/manifest @@ -147,7 +147,10 @@ namespace bpkg }; inline std::ostream& - operator<< (std::ostream& os, const version& v) {return os << v.string ();} + operator<< (std::ostream& os, const version& v) + { + return os << (v.empty () ? "<empty-version>" : v.string ()); + } // priority // |