Skip to content

Commit

Permalink
More information about types in int conversions (#8725)
Browse files Browse the repository at this point in the history
  • Loading branch information
macneale4 authored Jan 9, 2025
1 parent 05ce06e commit 6ab6681
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/store/prolly/tree/prolly_fields.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ func convInt(v interface{}) int {
case uint64:
return int(i)
default:
panic("impossible conversion")
panic(fmt.Sprintf("impossible conversion: %T cannot be converted to int", v))
}
}

Expand All @@ -382,7 +382,7 @@ func convUint(v interface{}) uint {
case uint64:
return uint(i)
default:
panic("impossible conversion")
panic(fmt.Sprintf("impossible conversion: %T cannot be converted to uint", v))
}
}

Expand Down

0 comments on commit 6ab6681

Please sign in to comment.