diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-06-12T11·00+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-06-12T11·00+0200 |
commit | 0960d674d48808eaaa3475899f45cfd6c7c3e51d (patch) | |
tree | 00170388877c5471808108bb72109797f4a365fd /src/libexpr/primops.cc | |
parent | 718f20da6d79466f91c49849bcf91a688aaa871e (diff) |
Drop ImportError and FindError
We're not catching these anywhere.
Diffstat (limited to 'src/libexpr/primops.cc')
-rw-r--r-- | src/libexpr/primops.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index fecaf37b6ed3..366911b54dcf 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -81,8 +81,6 @@ static void prim_scopedImport(EvalState & state, const Pos & pos, Value * * args } catch (InvalidPathError & e) { throw EvalError(format("cannot import `%1%', since path `%2%' is not valid, at %3%") % path % e.path % pos); - } catch (Error & e) { - throw ImportError(e.msg()); } if (isStorePath(path) && store->isValidPath(path) && isDerivation(path)) { @@ -701,8 +699,6 @@ static void prim_findFile(EvalState & state, const Pos & pos, Value * * args, Va } catch (InvalidPathError & e) { throw EvalError(format("cannot find `%1%', since path `%2%' is not valid, at %3%") % path % e.path % pos); - } catch (Error & e) { - throw FindError(e.msg()); } mkPath(v, state.findFile(searchPath, path).c_str()); |