aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd/repl.cc
diff options
context:
space:
mode:
authorBen Burdette <bburdette@protonmail.com>2022-04-29 11:24:54 -0600
committerBen Burdette <bburdette@protonmail.com>2022-04-29 11:24:54 -0600
commit172a83d22a3c984b6b569b5528d2338059bb748b (patch)
tree2dc8dd7a2726eaa125ac8e64ccc5a6944669b7fd /src/libcmd/repl.cc
parentca6cba8b81502450f8e377112ce11303ccedc760 (diff)
line endings
Diffstat (limited to 'src/libcmd/repl.cc')
-rw-r--r--src/libcmd/repl.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libcmd/repl.cc b/src/libcmd/repl.cc
index 40299e910..b94831064 100644
--- a/src/libcmd/repl.cc
+++ b/src/libcmd/repl.cc
@@ -276,10 +276,10 @@ void NixRepl::mainLoop(const std::vector<std::string> & files)
printMsg(lvlError, e.msg());
}
} catch (EvalError & e) {
- // in debugger mode, an EvalError should trigger another repl session.
+ // in debugger mode, an EvalError should trigger another repl session.
// when that session returns the exception will land here. No need to show it again;
// show the error for this repl session instead.
- if (debuggerHook && !this->state->debugTraces.empty())
+ if (debuggerHook && !this->state->debugTraces.empty())
showDebugTrace(std::cout, this->state->positions, this->state->debugTraces.front());
else
printMsg(lvlError, e.msg());
@@ -511,7 +511,7 @@ bool NixRepl::processLine(std::string line)
if (arg == "stack") {
int idx = 0;
for (auto iter = this->state->debugTraces.begin();
- iter != this->state->debugTraces.end();
+ iter != this->state->debugTraces.end();
++iter, ++idx) {
std::cout << "\n" << ANSI_BLUE << idx << ANSI_NORMAL << ": ";
showDebugTrace(std::cout, this->state->positions, *iter);
@@ -519,7 +519,7 @@ bool NixRepl::processLine(std::string line)
} else if (arg == "env") {
int idx = 0;
for (auto iter = this->state->debugTraces.begin();
- iter != this->state->debugTraces.end();
+ iter != this->state->debugTraces.end();
++iter, ++idx) {
if (idx == this->debugTraceIndex)
{
@@ -539,7 +539,7 @@ bool NixRepl::processLine(std::string line)
int idx = 0;
for (auto iter = this->state->debugTraces.begin();
- iter != this->state->debugTraces.end();
+ iter != this->state->debugTraces.end();
++iter, ++idx) {
if (idx == this->debugTraceIndex)
{