[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [vidalia/alpha] Inform the error code when unable to open torrc file



commit d5d4601a95c3e6a2cf61598aa599d6588e83793e
Author: Tomás Touceda <chiiph@xxxxxxxxxxxxxx>
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()));
   }
 }
 

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits