(exit.Error).Wrap => (exit.Error).WrapError
This commit moves from the deprecated (exit.Error).Wrap function to the (exit.Error).WrapError instead.
This commit is contained in:
parent
7763644ebe
commit
d268728f7d
20 changed files with 49 additions and 49 deletions
|
|
@ -46,17 +46,17 @@ func (mma makeMysqlAccount) Run(context wisski_distillery.Context) error {
|
|||
context.Printf("Username>")
|
||||
username, err := context.ReadLine()
|
||||
if err != nil {
|
||||
return errUnableToReadUsername.Wrap(err)
|
||||
return errUnableToReadUsername.WrapError(err)
|
||||
}
|
||||
|
||||
context.Printf("Password>")
|
||||
password, err := context.ReadPassword()
|
||||
if err != nil {
|
||||
return errUnableToReadPassword.Wrap(err)
|
||||
return errUnableToReadPassword.WrapError(err)
|
||||
}
|
||||
|
||||
if err := dis.SQL().CreateSuperuser(context.Context, username, password, false); err != nil {
|
||||
return errUnableToMakeAccount.Wrap(err)
|
||||
return errUnableToMakeAccount.WrapError(err)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue