Log an error message, note - we call this errormsg rather than error because error() is a stdlib function in kotlin in the global namespace and we don't want users to accidentally call that.