[tor-commits] [vidalia/alpha] Inform the error code when unable to open torrc file
chiiph at torproject.org
chiiph at torproject.org
Sat Mar 24 16:22:02 UTC 2012
commit d5d4601a95c3e6a2cf61598aa599d6588e83793e
Author: Tomás Touceda <chiiph at torproject.org>
Date: Sat Mar 24 12:58:46 2012 -0300
Inform the error code when unable to open torrc file
---
src/vidalia/config/TorrcDialog.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/vidalia/config/TorrcDialog.cpp b/src/vidalia/config/TorrcDialog.cpp
index 537c161..abc7bb7 100644
--- a/src/vidalia/config/TorrcDialog.cpp
+++ b/src/vidalia/config/TorrcDialog.cpp
@@ -107,7 +107,8 @@ TorrcDialog::loadTorrc()
} while(!line.isNull());
ui.teditTorrc->setText(text);
} else {
- QMessageBox::critical(this, tr("Error"), tr("An error ocurred while opening torrc file"));
+ QMessageBox::critical(this, tr("Error"), tr("An error ocurred while opening torrc file: %1")
+ .arg(file.error()));
}
}
More information about the tor-commits
mailing list