diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-10-01 11:44:38 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-10-01 11:44:38 +0200 |
commit | e3ef708dd18dbd0d24e11e37d552fddcaa362d72 (patch) | |
tree | da91ade249a24fa11f7f157fdcd935619603a1c0 /bpkg/package.cxx | |
parent | 098460199c35218979e207a1709111e477ab9567 (diff) |
Add dependencies list to available packages
Diffstat (limited to 'bpkg/package.cxx')
-rw-r--r-- | bpkg/package.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bpkg/package.cxx b/bpkg/package.cxx index c6f5dcf..02cb49d 100644 --- a/bpkg/package.cxx +++ b/bpkg/package.cxx @@ -117,12 +117,12 @@ namespace bpkg } state - from_string (const string& s) + to_state (const string& s) { if (s == "broken") return state::broken; else if (s == "fetched") return state::fetched; else if (s == "unpacked") return state::unpacked; else if (s == "configured") return state::configured; - else throw invalid_argument (s); + else throw invalid_argument ("invalid package state '" + s + "'"); } } |