Fix crash in tab completion

Fixes #1. Patch by Maxdamantus.
This commit is contained in:
Eelco Dolstra 2014-04-11 12:51:15 +02:00
parent 22a47ab03c
commit 1734e8a149

View file

@ -218,6 +218,8 @@ void NixRepl::completePrefix(string prefix)
// Quietly ignore parse errors.
} catch (EvalError & e) {
// Quietly ignore evaluation errors.
} catch (UndefinedVarError & e) {
// Quietly ignore undefined variable errors.
}
}
}