Skip to content

Commit dfd3046

Browse files
committed
replace error
1 parent 437ce25 commit dfd3046

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

datamodel/spec_info.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ func ExtractSpecInfoWithDocumentCheck(spec []byte, bypass bool) (*SpecInfo, erro
154154

155155
// parse JSON
156156
if err := parseJSON(spec, specInfo, &parsedSpec); err != nil {
157-
specInfo.Error = fmt.Errorf("failed to parse specification: %w", err)
157+
specInfo.Error = fmt.Errorf("unable to parse specification: %w", err)
158158
return specInfo, specInfo.Error
159159
}
160160
parsed = true
@@ -184,7 +184,7 @@ func ExtractSpecInfoWithDocumentCheck(spec []byte, bypass bool) (*SpecInfo, erro
184184

185185
// parse JSON
186186
if err := parseJSON(spec, specInfo, &parsedSpec); err != nil {
187-
specInfo.Error = fmt.Errorf("failed to parse specification: %w", err)
187+
specInfo.Error = fmt.Errorf("unable to parse specification: %w", err)
188188
return specInfo, specInfo.Error
189189
}
190190
parsed = true
@@ -211,7 +211,7 @@ func ExtractSpecInfoWithDocumentCheck(spec []byte, bypass bool) (*SpecInfo, erro
211211

212212
// parse JSON
213213
if err := parseJSON(spec, specInfo, &parsedSpec); err != nil {
214-
specInfo.Error = fmt.Errorf("failed to parse specification: %w", err)
214+
specInfo.Error = fmt.Errorf("unable to parse specification: %w", err)
215215
return specInfo, nil
216216
}
217217
parsed = true
@@ -244,7 +244,7 @@ func ExtractSpecInfoWithDocumentCheck(spec []byte, bypass bool) (*SpecInfo, erro
244244

245245
if !parsed {
246246
if err := parseJSON(spec, specInfo, &parsedSpec); err != nil {
247-
specInfo.Error = fmt.Errorf("failed to parse specification: %w", err)
247+
specInfo.Error = fmt.Errorf("unable to parse specification: %w", err)
248248
return specInfo, specInfo.Error
249249
}
250250
}

0 commit comments

Comments
 (0)