From ff7a93ca80f796546f8d106a473ca70a3128f3e0 Mon Sep 17 00:00:00 2001 From: Kevin Walzer Date: Sat, 4 Sep 2021 12:38:31 +0000 Subject: Update error handling --- unix/tkUnixWm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix/tkUnixWm.c b/unix/tkUnixWm.c index 581c3cc..30d5090 100644 --- a/unix/tkUnixWm.c +++ b/unix/tkUnixWm.c @@ -2159,7 +2159,7 @@ WmIconbadgeCmd( Tcl_GetString(objv[2]), Tcl_GetString(objv[3])); if (Tcl_EvalEx(interp, cmd, -1, TCL_EVAL_DIRECT) != TCL_OK) { - Tcl_SetResult(interp,"Unable to set icon badge",TCL_VOLATILE); + Tcl_SetResult(interp,"You must set the value of \"::tk::icons::base_icon($win)\" to a Tk photo before setting an icon badge",TCL_VOLATILE); return TCL_ERROR; } return TCL_OK; -- cgit v0.12