Use the Validation Show If server behavior to display an error message if validation fails.
For errors generated by Digital File pro, see the "Customizing Digital File Pro Error Messages" tutorial on the how to section of the DFP Support page:
digital-file-pro/