Use the --error option. Диалоговое окно ошибки

Use the --error option to create an error dialog.

The following example script shows how to create an error dialog:

#!/bin/bash zenity --error \ --text="Could not find /var/log/syslog."
Пример диалогового окна ошибки Zenity error dialog example