gnuradio / pmt

pmt
GNU Lesser General Public License v3.0
11 stars 11 forks source link

Improve Wrong type Error Messages #26

Closed jsallay closed 2 years ago

jsallay commented 2 years ago

When a user attempts to convert a pmt to an invalid type, we should print an error message that includes the desired type and the actual type in plain english. This will be very valuable for debugging.

Also we need to make sure that for convertible types, that we just do the conversion. For example, a float can be converted to a double, so we shouldn't raise an error there. Make sure this is the case.

jsallay commented 2 years ago

Closed by https://github.com/gnuradio/pmt/pull/28