diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-11T10·51+0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-04-11T10·51+0200 |
commit | 1734e8a1491ef831c83c2620b6b0f4a590b67c1f (patch) | |
tree | 8f828904f0ced118621ed00bf6234bc0d90e14ae | |
parent | 22a47ab03c8a1bf81df3aa0d29a4d6a29aacc36f (diff) |
Fix crash in tab completion
Fixes #1. Patch by Maxdamantus.
-rw-r--r-- | nix-repl.cc | 4 |
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. } } } |