diff options
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 + "'"); } } |