[seahorse] SSH: when parsing a key, add the type if invalid.
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seahorse] SSH: when parsing a key, add the type if invalid.
- Date: Thu, 8 Mar 2018 21:29:42 +0000 (UTC)
commit 224de34ba18c1989809571447d47c571de301d51
Author: Niels De Graef <nielsdegraef gmail com>
Date: Wed Mar 7 18:32:48 2018 +0100
SSH: when parsing a key, add the type if invalid.
ssh/key-data.vala | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/ssh/key-data.vala b/ssh/key-data.vala
index d26621b..4c2c496 100644
--- a/ssh/key-data.vala
+++ b/ssh/key-data.vala
@@ -73,7 +73,7 @@ public class Seahorse.Ssh.KeyData : GLib.Object {
result.algo = Algorithm.guess_from_string(type);
if (result.algo == Algorithm.UNKNOWN)
- throw new Error.GENERAL("Key doesn't have a valid type.");
+ throw new Error.GENERAL("Key doesn't have a valid type (%s).".printf(type));
// Prepare for decoding
string rest = type_rest[1];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]