Adding Sentry/Raven for error tracking

This commit is contained in:
James Barnsley
2017-09-19 16:57:59 +12:00
parent 3844fca6db
commit 50f3d508bc
10 changed files with 99 additions and 16 deletions

View File

@ -32,7 +32,15 @@ export function startSearch(search_type, query, only_mopidy = false){
}
}
export function debugResponse( response ){
export function handleException(message, data = {}){
return {
type: 'HANDLE_EXCEPTION',
message: message,
data: data
}
}
export function debugResponse(response){
return {
type: 'DEBUG',
response: response