#!/bin/sh
#
# dlg-error - shows gui error message
#
# usage:
#
#     `dlg-prompt {{text}} {{title}}`
#
# ---
# source: https://github.com/sapegin/dotfiles

osascript << EOT
  tell app "System Events"
    display dialog "$1" buttons {"OK"} default button 1 with icon caution with title "$2"
    return  -- Suppress result
  end tell
EOT
