Fix step definition output for Data Tables (#411)

* Fix step definition output for Data Tables

This fixes incorrect step definition output for Data Tables. The
PickleStepArgument_PickleTable type does not exist in the current
messages-go version.

* updated CHANGELOG.md
Этот коммит содержится в:
Karsten Franke 2021-07-29 09:27:00 +01:00 коммит произвёл GitHub
родитель 15358d20e7
коммит 7d343d4e35
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -23,6 +23,7 @@ This document is formatted according to the principles of [Keep A CHANGELOG](htt
### Removed ### Removed
### Fixed ### Fixed
* Incorrect step definition output for Data Tables ([411](https://github.com/cucumber/godog/pull/411) - [karfrank])
## [v0.11.0] ## [v0.11.0]

Просмотреть файл

@ -145,7 +145,7 @@ func (sd *StepDefinition) Run() interface{} {
break break
} }
return fmt.Errorf(`%w %d: "%v" of type "%T" to *messages.PickleStepArgument_PickleTable`, ErrCannotConvert, i, arg, arg) return fmt.Errorf(`%w %d: "%v" of type "%T" to *messages.PickleTable`, ErrCannotConvert, i, arg, arg)
default: default:
return fmt.Errorf("%w: the argument %d type %T is not supported %s", ErrUnsupportedArgumentType, i, arg, param.Elem().String()) return fmt.Errorf("%w: the argument %d type %T is not supported %s", ErrUnsupportedArgumentType, i, arg, param.Elem().String())
} }