diff options
Diffstat (limited to 'core/ext/find.lua')
-rw-r--r-- | core/ext/find.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/ext/find.lua b/core/ext/find.lua index 803e31a9..3b571857 100644 --- a/core/ext/find.lua +++ b/core/ext/find.lua @@ -96,7 +96,11 @@ function find.replace(rtext) function(code) local ret, val = pcall( loadstring('return '..code) ) if not ret then - os.execute('zenity --error --text "'..val:gsub('"', '\\"')..'"') + cocoa_dialog( 'msgbox', { + title = 'Error', + text = 'An error occured:', + ['informative-text'] = val:gsub('"', '\\"') + } ) error() end return val |