about summary refs log tree commit diff
path: root/doc/manual/expressions
diff options
context:
space:
mode:
authorLinus Heckemann <git@sphalerite.org>2017-04-17T09·33+0100
committerLinus Heckemann <git@sphalerite.org>2017-04-17T09·33+0100
commit9622d00afa6e94ef3ca026f9e15a7d122566e7d0 (patch)
treeba515936557f180b28172654f3d56164b2a32d8b /doc/manual/expressions
parentf8a2e8a55203f2cc16d70ad43afcc186adaab6b3 (diff)
Manual: document tryEval
Diffstat (limited to 'doc/manual/expressions')
-rw-r--r--doc/manual/expressions/builtins.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/manual/expressions/builtins.xml b/doc/manual/expressions/builtins.xml
index e9baff65961a..8a18b71008cb 100644
--- a/doc/manual/expressions/builtins.xml
+++ b/doc/manual/expressions/builtins.xml
@@ -1163,6 +1163,19 @@ stdenv.mkDerivation (rec {
 
   </varlistentry>
 
+  <varlistentry><term><function>builtins.tryEval</function>
+  <replaceable>e</replaceable></term>
+
+    <listitem><para>Try to evaluate <replaceable>e</replaceable>.
+    Return a set containing the attributes <literal>success</literal>
+    (<literal>true</literal> if <replaceable>e</replaceable> evaluated
+    successfully, <literal>false</literal> if an error was thrown) and
+    <literal>value</literal>, equalling <replaceable>e</replaceable>
+    if successful and <literal>false</literal> otherwise.
+    </para></listitem>
+
+  </varlistentry>
+
 
   <varlistentry><term><function>builtins.typeOf</function>
   <replaceable>e</replaceable></term>