diff options
author | David Robillard <d@drobilla.net> | 2019-02-15 22:24:54 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-02-15 22:24:54 +0100 |
commit | b321fb5d3d6b3c2855c2fcc049c6f3b8fb13a7a8 (patch) | |
tree | 2347b5b8d8eac8647267fb33ed35cd0f8dfabdf8 /src/unify.cpp | |
parent | 80801dc725dbb08c67ddee92fc742093f8c2bc7c (diff) | |
download | resp-llvm7.tar.gz resp-llvm7.tar.bz2 resp-llvm7.zip |
WIP: Port to LLVM7llvm7
Diffstat (limited to 'src/unify.cpp')
-rw-r--r-- | src/unify.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unify.cpp b/src/unify.cpp index a23bbcb..79f1a8f 100644 --- a/src/unify.cpp +++ b/src/unify.cpp @@ -161,14 +161,14 @@ unify(const Constraints& constraints) else if (*si && *ti) cp.push_back(Constraint(*si, *ti)); else - throw Error(Cursor(), "match with missing list element"); + throw RespError(Cursor(), "match with missing list element"); } if ((si == st->end() && ti == tt->end()) || (si != st->end() && is_dots(*si)) || (ti != tt->end() && is_dots(*ti))) return unify(cp); } - throw Error(s->loc, + throw RespError(s->loc, (format("type is `%1%' but should be `%2%'\n%3%: error: to match `%4%' here") % s->str() % t->str() % t->loc.str() % t->str()).str()); } |