[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
24/118: Drop ImportError and FindError
From: |
Ludovic Courtès |
Subject: |
24/118: Drop ImportError and FindError |
Date: |
Tue, 19 May 2015 14:45:21 +0000 |
civodul pushed a commit to branch nix
in repository guix.
commit 0960d674d48808eaaa3475899f45cfd6c7c3e51d
Author: Eelco Dolstra <address@hidden>
Date: Thu Jun 12 13:00:54 2014 +0200
Drop ImportError and FindError
We're not catching these anywhere.
---
src/libexpr/nixexpr.hh | 2 --
src/libexpr/primops.cc | 4 ----
2 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/src/libexpr/nixexpr.hh b/src/libexpr/nixexpr.hh
index b8d0929..9c631d0 100644
--- a/src/libexpr/nixexpr.hh
+++ b/src/libexpr/nixexpr.hh
@@ -15,8 +15,6 @@ MakeError(AssertionError, EvalError)
MakeError(ThrownError, AssertionError)
MakeError(Abort, EvalError)
MakeError(TypeError, EvalError)
-MakeError(ImportError, EvalError) // error building an imported derivation
-MakeError(FindError, EvalError) // error building a nix-path component
MakeError(UndefinedVarError, Error)
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index fecaf37..366911b 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());
- 17/118: nix-env -qa --json: Generate valid JSON even if there are invalid meta attrs, (continued)
- 17/118: nix-env -qa --json: Generate valid JSON even if there are invalid meta attrs, Ludovic Courtès, 2015/05/19
- 23/118: findFile: Realise the context of the path attributes, Ludovic Courtès, 2015/05/19
- 11/118: Rephrase @ operator description, Ludovic Courtès, 2015/05/19
- 29/118: Merge branch 'shlevy-import-native', Ludovic Courtès, 2015/05/19
- 12/118: dev-shell is a bash script, not sh, Ludovic Courtès, 2015/05/19
- 22/118: Share code between scopedImport and import, Ludovic Courtès, 2015/05/19
- 26/118: Don't use member initialisers, Ludovic Courtès, 2015/05/19
- 31/118: Add `--json` argument to `nix-instantiate`, Ludovic Courtès, 2015/05/19
- 18/118: Print a warning when loading a large path into memory, Ludovic Courtès, 2015/05/19
- 27/118: Add importNative primop, Ludovic Courtès, 2015/05/19
- 24/118: Drop ImportError and FindError,
Ludovic Courtès <=
- 28/118: Only add the importNative primop if the allow-arbitrary-code-during-evaluation option is true (default false), Ludovic Courtès, 2015/05/19
- 30/118: allow-arbitrary-code-during-evaluation -> allow-unsafe-native-code-during-evaluation, Ludovic Courtès, 2015/05/19
- 34/118: Add builtin function ‘fromJSON’, Ludovic Courtès, 2015/05/19
- 36/118: Fix compilation error on some versions of GCC, Ludovic Courtès, 2015/05/19
- 32/118: Style fix, Ludovic Courtès, 2015/05/19
- 46/118: Fix use of sysread, Ludovic Courtès, 2015/05/19
- 33/118: Manual: html -> xhtml, Ludovic Courtès, 2015/05/19
- 45/118: nix-copy-closure -s: Do substitutions via ‘nix-store --serve’, Ludovic Courtès, 2015/05/19
- 40/118: Remove maybeVfork, Ludovic Courtès, 2015/05/19
- 50/118: Fix closure size display, Ludovic Courtès, 2015/05/19