File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -52,13 +52,13 @@ func (e *mockAPIError) ErrorCode() string {
5252 return e .Code
5353}
5454
55- // ErrorMessage returns the error's message.
56- func (e * mockAPIError ) ErrorMessage () string {
55+ // Error returns the error's message, satisfying the standard 'error' interface .
56+ func (e * mockAPIError ) Error () string {
5757 return e .Message
5858}
5959
6060// Error returns the error's message, satisfying the standard 'error' interface.
61- func (e * mockAPIError ) Error () string {
61+ func (e * mockAPIError ) ErrorMessage () string {
6262 return e .Message
6363}
6464
@@ -67,6 +67,9 @@ func (e *mockAPIError) ErrorFault() smithy.ErrorFault {
6767 // smithy.FaultClient is a good default for most simulated errors.
6868 return smithy .FaultClient
6969}
70+
71+ var _ smithy.APIError = (* mockAPIError )(nil )
72+
7073func TestServiceCreate (t * testing.T ) {
7174 mockCtrl := gomock .NewController (t )
7275 defer mockCtrl .Finish ()
You can’t perform that action at this time.
0 commit comments