Skip to content

Commit

Permalink
include output id in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
almarklein committed Oct 29, 2020
1 parent aa7c669 commit 22e3a50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dash/dash.py
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,8 @@ def dispatch(self):
try:
func = self.callback_map[output]["callback"]
except KeyError:
raise KeyError("Callback not found, maybe you forgot to prepend the '@'?")
msg = "Callback function not found for output '{}', perhaps you forgot to prepend the '@'?"
raise KeyError(msg.format(output))
response.set_data(func(*args, outputs_list=outputs_list))
return response

Expand Down

0 comments on commit 22e3a50

Please # to comment.