aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.ucl/parser.cc
diff options
context:
space:
mode:
authorLexi Winter <lexi@le-fay.org>2025-06-27 12:08:58 +0100
committerLexi Winter <lexi@le-fay.org>2025-06-27 12:08:58 +0100
commit001c9917ace09f7b1c80d96eb067e1d37e86c546 (patch)
tree89e360961b9659a8c6b897c5412b7d6834b8eed9 /nihil.ucl/parser.cc
parent90aa957ca9b7c217af7569009d1675e0f3ff8e9b (diff)
downloadnihil-001c9917ace09f7b1c80d96eb067e1d37e86c546.tar.gz
nihil-001c9917ace09f7b1c80d96eb067e1d37e86c546.tar.bz2
improve error handling
Diffstat (limited to 'nihil.ucl/parser.cc')
-rw-r--r--nihil.ucl/parser.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/nihil.ucl/parser.cc b/nihil.ucl/parser.cc
index 611fe50..2288c4c 100644
--- a/nihil.ucl/parser.cc
+++ b/nihil.ucl/parser.cc
@@ -16,14 +16,14 @@ import nihil;
namespace nihil::ucl {
-auto make_parser(int flags) -> std::expected<parser, nihil::error>
+auto make_parser(int flags) -> std::expected<parser, error>
{
auto *p = ::ucl_parser_new(flags);
if (p != nullptr)
return p;
// TODO: Is there a way to get the actual error here?
- return std::unexpected(nihil::error("failed to create parser"));
+ return std::unexpected(error("failed to create parser"));
}
auto macro_handler::handle(unsigned char const *data,