[libhttpseverywhere] updater: correct errorstring
- From: Daniel Brendle <elbren src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhttpseverywhere] updater: correct errorstring
- Date: Fri, 19 Jan 2018 22:08:54 +0000 (UTC)
commit 710d4cf0076111d27817d8da57bfd847b231c740
Author: grindhold <grindhold gmx net>
Date: Fri Jan 19 22:51:32 2018 +0100
updater: correct errorstring
could → couldn't
update: add debugmessages
src/update.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/update.vala b/src/update.vala
index 5f6ff35..bb8a9db 100644
--- a/src/update.vala
+++ b/src/update.vala
@@ -152,6 +152,7 @@ namespace HTTPSEverywhere {
throw (IOError) e;
if (e is UpdateError.NO_UPDATE_AVAILABLE)
throw (UpdateError) e;
+ debug(e.message);
throw new UpdateError.CANT_REACH_SERVER("Couldn't request update from '%s'", UPDATE_URL);
}
} catch (FileError e) {}
@@ -165,7 +166,8 @@ namespace HTTPSEverywhere {
} catch (Error e) {
if (e is IOError.CANCELLED)
throw (IOError) e;
- throw new UpdateError.CANT_REACH_SERVER("Could request update from '%s'", UPDATE_URL);
+ debug(e.message);
+ throw new UpdateError.CANT_REACH_SERVER("Couldn't request update from '%s'", UPDATE_URL);
}
// We expect the packed archive to be ~5 MiB big
uint8[] output = new uint8[(5*1024*1024)];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]