There is currently no default error popup in Perspective that can be called from scripting; however, it should be easy to create a generic error/warning popup and to send it parameters using the openPopup function:
https://docs.inductiveautomation.com/display/DOC80/system.perspective.openPopup
This way, you can display the information as desired.