Skip to content

Commit

Permalink
fix message
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Mar 1, 2024
1 parent 55c1e9d commit 8c133f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hubutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,10 @@ func modelRecord(rec Record) (Record, error) {
}
// we should have only one record from MetaData
if len(records) != 1 {
msg := fmt.Sprintf("Incorrect number of MetaData records %+v", records)
msg := fmt.Sprintf("Ambiguous request, ML records %+v", records)
if len(records) == 0 {
msg = fmt.Sprintf("No ML records found for your request")
}
return rec, errors.New(msg)
}
record = records[0]
Expand Down

0 comments on commit 8c133f7

Please sign in to comment.