mirror of
https://github.com/gogs/gogs.git
synced 2025-05-31 11:42:13 +00:00
pkg/ssh: print actual error in panic (#5435)
This commit is contained in:
parent
33e009bedb
commit
aff0bbcc32
@ -96,7 +96,7 @@ ENABLE_LOCAL_PATH_MIGRATION = false
|
||||
; Concurrency is used to retrieve commits information. This variable define
|
||||
; the maximum number of tasks that can be run at the same time. Usually, the
|
||||
; value depend of how many CPUs (cores) you have. If the value is set to zero
|
||||
; or under, GOGS will automatically detect the number of CPUs your system have
|
||||
; or under, Gogs will automatically detect the number of CPUs your system have
|
||||
COMMITS_FETCH_CONCURRENCY = 0
|
||||
; Enable render mode for raw file
|
||||
ENABLE_RAW_FILE_RENDER_MODE = false
|
||||
|
2
gogs.go
2
gogs.go
@ -16,7 +16,7 @@ import (
|
||||
"github.com/gogs/gogs/pkg/setting"
|
||||
)
|
||||
|
||||
const APP_VER = "0.11.66.0916"
|
||||
const APP_VER = "0.11.66.0928"
|
||||
|
||||
func init() {
|
||||
setting.AppVer = APP_VER
|
||||
|
File diff suppressed because one or more lines are too long
@ -175,11 +175,11 @@ func Listen(host string, port int, ciphers []string) {
|
||||
|
||||
privateBytes, err := ioutil.ReadFile(keyPath)
|
||||
if err != nil {
|
||||
panic("SSH: Fail to load private key")
|
||||
panic("SSH: Fail to load private key: " + err.Error())
|
||||
}
|
||||
private, err := ssh.ParsePrivateKey(privateBytes)
|
||||
if err != nil {
|
||||
panic("SSH: Fail to parse private key")
|
||||
panic("SSH: Fail to parse private key: " + err.Error())
|
||||
}
|
||||
config.AddHostKey(private)
|
||||
|
||||
|
@ -1 +1 @@
|
||||
0.11.66.0916
|
||||
0.11.66.0928
|
||||
|
Loading…
x
Reference in New Issue
Block a user