Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Add error constants
- notFound: id => `Pokemon with id: ${id} does not exists`,
- getDBerror: (id, stack) => `Error getting Pokemon with id: ${id}, stack: ${stack}`,
- // Add action constants
- get: id => `Getting pokemon with id: ${id}`,
- found: pokemon => `Founded pokemon - ${JSON.stringify(pokemon)}`,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement