Slightly better error message in case of missing resources.
diff --git a/Mac/Lib/EasyDialogs.py b/Mac/Lib/EasyDialogs.py
index 394e912..52aad97 100644
--- a/Mac/Lib/EasyDialogs.py
+++ b/Mac/Lib/EasyDialogs.py
@@ -50,7 +50,7 @@
d = GetNewDialog(id, -1)
if not d:
- print "Can't get DLOG resource with id =", id
+ print "EasyDialogs: Can't get DLOG resource with id =", id, " (missing resource file?)"
return
h = d.GetDialogItemAsControl(2)
SetDialogItemText(h, lf2cr(msg))
@@ -81,7 +81,7 @@
d = GetNewDialog(id, -1)
if not d:
- print "Can't get DLOG resource with id =", id
+ print "EasyDialogs: Can't get DLOG resource with id =", id, " (missing resource file?)"
return
h = d.GetDialogItemAsControl(3)
SetDialogItemText(h, lf2cr(prompt))
@@ -121,7 +121,7 @@
"""
d = GetNewDialog(id, -1)
if not d:
- print "Can't get DLOG resource with id =", id
+ print "EasyDialogs: Can't get DLOG resource with id =", id, " (missing resource file?)"
return
h = d.GetDialogItemAsControl(3)
SetDialogItemText(h, lf2cr(prompt))
@@ -163,7 +163,7 @@
d = GetNewDialog(id, -1)
if not d:
- print "Can't get DLOG resource with id =", id
+ print "EasyDialogs: Can't get DLOG resource with id =", id, " (missing resource file?)"
return
# Button assignments:
# 1 = default (invisible)
@@ -393,7 +393,7 @@
def GetArgv(optionlist=None, commandlist=None, addoldfile=1, addnewfile=1, addfolder=1, id=ARGV_ID):
d = GetNewDialog(id, -1)
if not d:
- print "Can't get DLOG resource with id =", id
+ print "EasyDialogs: Can't get DLOG resource with id =", id, " (missing resource file?)"
return
# h = d.GetDialogItemAsControl(3)
# SetDialogItemText(h, lf2cr(prompt))