[libhttpseverywhere: 7/21] updater: Include error message in critical warning
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhttpseverywhere: 7/21] updater: Include error message in critical warning
- Date: Tue, 22 Nov 2016 14:37:52 +0000 (UTC)
commit 5e18ba58b1d3a3235b1ea9cd9f426a34904c35e6
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Mon Oct 24 21:00:01 2016 -0500
updater: Include error message in critical warning
src/update.vala | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/update.vala b/src/update.vala
index 7acd1f7..fb22d6b 100644
--- a/src/update.vala
+++ b/src/update.vala
@@ -219,8 +219,8 @@ namespace HTTPSEverywhere {
try {
var f = File.new_for_path(UPDATE_DIR);
f.make_directory_with_parents();
- } catch {
- critical("Could not create "+UPDATE_DIR+"\n");
+ } catch (Error e) {
+ critical("Could not create %s: %s", UPDATE_DIR, e.message);
}
lock_update();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]