Error dialogs

See #24 and #18.