You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/kotlin/com/kruthers/datapackmanager/actions/Clone.kt
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,10 @@ class Clone(private val sender: CommandSender, private val plugin: DatapackManag
52
52
sender.sendMessage(parse("<red>Failed to clone from github, invalid link given, check the console for more details."))
53
53
log.warning("Failed to complete clone, an invalid remove exception occurred: \n${e.message}")
54
54
return
55
+
} catch (e:NotSshRemote) {
56
+
sender.sendMessage(parse("<red>Failed to clone from github, invalid link: The provided git remote is not a ssh clone remote. These start with git@ not https://"))
57
+
log.warning("Failed to complete clone, the provided remote was no an ssh remove")
58
+
return
55
59
} catch (e:Exception) {
56
60
sender.sendMessage(parse("<red>Failed to clone from github, a unknown Exception occurred, check the console for more details."))
57
61
log.warning("Failed to complete clone, an unknown exception occurred: \n${e.stackTraceToString()}")
0 commit comments