Skip to content

Commit 22e3a50

Browse files
committed
include output id in error message
1 parent aa7c669 commit 22e3a50

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dash/dash.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,8 @@ def dispatch(self):
10711071
try:
10721072
func = self.callback_map[output]["callback"]
10731073
except KeyError:
1074-
raise KeyError("Callback not found, maybe you forgot to prepend the '@'?")
1074+
msg = "Callback function not found for output '{}', perhaps you forgot to prepend the '@'?"
1075+
raise KeyError(msg.format(output))
10751076
response.set_data(func(*args, outputs_list=outputs_list))
10761077
return response
10771078

0 commit comments

Comments
 (0)