Throws a assertion (NS_ASSERTION
) with the text "Error: (error text)", so writes this text to console (stderr) and to debug logs (NSPR logging). This macro is meant for critical errors; like assertions, NS_ERROR
s should not be reachable.
NS_ERROR("error text");