Skip to content

Commit 28995eb

Browse files
committed
fix: better error loading known hosts error message
1 parent 51cac4d commit 28995eb

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

lib/api/manager/git_manager.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ class GitManager {
8484
"failed to parse loose object: invalid header": () async => corruptedLooseObjectError,
8585
"PEM preamble contains invalid data": () async => pemPreambleError,
8686
"cannot push non-fastforwardable reference": () async => cannotPushNonFastforwardableError,
87+
"error loading known_hosts": () async => errorLoadingKnownHostsError,
8788
};
8889

8990
static final List<String> resyncStrings = ["uncommitted changes exist in index", "unstaged changes exist in workdir"];

lib/constant/strings.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ const String uncommittedChangeOverwrittenError =
9292
"Local uncommitted changes conflict with incoming changes. Commit or discard your local changes and sync again, or use Download & Overwrite / Upload & Overwrite to resolve.";
9393
const String failedToReadIndex = "failed to read index";
9494
const String failedToReadIndexError = "The repository index is corrupted or missing. Use Auto-Fix to rebuild it.";
95+
const String errorLoadingKnownHosts = "error loading known_hosts";
96+
const String errorLoadingKnownHostsError =
97+
"Could not load SSH known hosts file. Try toggling \"Disable SSL Verification\" in repository settings, or re-enter your SSH credentials.";
9598

9699
// Sync Dialogs
97100
const String resolvingMerge = "Resolving merge…";

0 commit comments

Comments
 (0)