about summary refs log tree commit diff
path: root/nix-repl.cc
diff options
context:
space:
mode:
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.
         }
     }
 }