diff options
Diffstat (limited to 'nihil.ucl/parser.cc')
| -rw-r--r-- | nihil.ucl/parser.cc | 4 |
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, |
