YulUtilFunctions::conversionFunction: Add more info to the assertion that fails on invalid conversion

This commit is contained in:
Kamil Śliwak 2020-11-08 22:01:22 +01:00
parent 6fa42b5efd
commit c970fb46ce

View File

@ -2971,7 +2971,7 @@ string YulUtilFunctions::conversionFunction(Type const& _from, Type const& _to)
break;
}
default:
solAssert(false, "");
solAssert(false, "Invalid conversion from " + _from.canonicalName() + " to " + _to.canonicalName());
}
solAssert(!body.empty(), _from.canonicalName() + " to " + _to.canonicalName());