aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/nar-accessor.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-11-14 14:49:06 +0100
committerEelco Dolstra <edolstra@gmail.com>2017-11-14 14:49:06 +0100
commit5773d667ee26efb4b977b9109da509d46d8378b5 (patch)
treedde97a115ef3aa2f421a7e7cd11c50423533f07a /src/libstore/nar-accessor.cc
parentb8d446829eb9a0f65e314039e0f910a3aceaa143 (diff)
nix ls-{nar,store}: Don't abort on missing files
Diffstat (limited to 'src/libstore/nar-accessor.cc')
-rw-r--r--src/libstore/nar-accessor.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/nar-accessor.cc b/src/libstore/nar-accessor.cc
index e5042208e..839a7991c 100644
--- a/src/libstore/nar-accessor.cc
+++ b/src/libstore/nar-accessor.cc
@@ -214,7 +214,7 @@ void listNar(JSONPlaceholder & res, ref<FSAccessor> accessor,
obj.attr("target", accessor->readLink(path));
break;
default:
- abort();
+ throw Error("path '%s' does not exist in NAR", path);
}
}