about summary refs log tree commit diff
path: root/nix-repl.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-04-11T10·51+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-04-11T10·51+0200
commit1734e8a1491ef831c83c2620b6b0f4a590b67c1f (patch)
tree8f828904f0ced118621ed00bf6234bc0d90e14ae /nix-repl.cc
parent22a47ab03c8a1bf81df3aa0d29a4d6a29aacc36f (diff)
Fix crash in tab completion
Fixes #1. Patch by Maxdamantus.
Diffstat (limited to 'nix-repl.cc')
-rw-r--r--nix-repl.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/nix-repl.cc b/nix-repl.cc
index ef9be417acdd..8049008d14eb 100644
--- a/nix-repl.cc
+++ b/nix-repl.cc
@@ -216,8 +216,10 @@ void NixRepl::completePrefix(string prefix)
 
         } catch (ParseError & e) {
             // Quietly ignore parse errors.
-        }catch (EvalError & e) {
+        } catch (EvalError & e) {
             // Quietly ignore evaluation errors.
+        } catch (UndefinedVarError & e) {
+            // Quietly ignore undefined variable errors.
         }
     }
 }