浏览代码

fixed some typos and improved a log

Nicola Murino 5 年之前
父节点
当前提交
e69536f540
共有 3 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      README.md
  2. 1 1
      dataprovider/dataprovider.go
  3. 1 1
      sftpd/scp.go

+ 1 - 1
README.md

@@ -408,7 +408,7 @@ To enable dynamic users modifications you must set the absolute path of your pro
 The external program can read the following environment variables to get info about the user trying to login:
 
 - `SFTPGO_LOGIND_USER`, it contains the user trying to login serialized as JSON
-- `SFTPGO_LOGIND_METHOD`, possibile values are: `password`, `publickey` and `keyboard-interactive`
+- `SFTPGO_LOGIND_METHOD`, possible values are: `password`, `publickey` and `keyboard-interactive`
 
 The program must write, on its the standard output, an empty string (or no response at all) if no user update is needed or the updated SFTPGo user serialized as JSON.
 The JSON response can include only the fields that need to the updated instead of the full user, for example if you want to disable the user you can return a response like this:

+ 1 - 1
dataprovider/dataprovider.go

@@ -202,7 +202,7 @@ type Config struct {
 	// The external program can read the following environment variables:
 	//
 	// - SFTPGO_LOGIND_USER, it contains the user trying to login serialized as JSON
-	// - SFTPGO_LOGIND_METHOD, possibile values are: "password", "publickey" and "keyboard-interactive"
+	// - SFTPGO_LOGIND_METHOD, possible values are: "password", "publickey" and "keyboard-interactive"
 	//
 	// The program must respond on the standard output with an empty string if no user
 	// update is needed or with a valid SFTPGo user serialized as JSON.

+ 1 - 1
sftpd/scp.go

@@ -643,7 +643,7 @@ func (c *scpCommand) createDir(dirPath string) error {
 		return nil
 	}
 	if err = c.connection.fs.Mkdir(dirPath); err != nil {
-		c.connection.Log(logger.LevelError, logSenderSCP, "error creating dir %#v", dirPath)
+		c.connection.Log(logger.LevelError, logSenderSCP, "error creating dir %#v: %v", dirPath, err)
 		c.sendErrorMessage(err.Error())
 		return err
 	}