Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
Provide more context to warnings
Browse files Browse the repository at this point in the history
Issue #1283
  • Loading branch information
pablosichert committed Nov 16, 2017
1 parent 1bf091a commit 5c194e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Shortcuts/ShortcutProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default class ShortcutProvider extends Component {
}

// eslint-disable-next-line max-len
console.warn(`Handler defined for key sequence "${keySequence}" is not a function.`);
console.warn(`Handler defined for key sequence "${serializedSequence}" is not a function.`, handler);
};

handleKeyUp = () => {
Expand Down Expand Up @@ -116,7 +116,7 @@ export default class ShortcutProvider extends Component {

if (!found) {
// eslint-disable-next-line max-len
console.warn(`The handler you are trying to unsubscribe from "${name}" has not been subscribed yet.`);
console.warn(`The handler you are trying to unsubscribe from "${name}" has not been subscribed yet.`, handler);
}
};

Expand Down

0 comments on commit 5c194e4

Please sign in to comment.