diff --git a/bin/dde-lockservice/manager.go b/bin/dde-lockservice/manager.go index ba2aa83ba..3d6e8c5e4 100644 --- a/bin/dde-lockservice/manager.go +++ b/bin/dde-lockservice/manager.go @@ -119,7 +119,7 @@ func (m *Manager) SwitchToUser(username string) *dbus.Error { err := setGreeterUser(greeterUserConfig, username) if err != nil { - return dbusutil.ToError(err) + return dbusutil.ToError(errors.New("set greeter user failed")) } if current != "" { err = m.service.Emit(m, "UserChanged", username)