More logical error handling

This commit is contained in:
James Barnsley
2017-10-26 19:26:38 +13:00
parent 563ac34cee
commit 47fe20bcd7
4 changed files with 97 additions and 79 deletions

View File

@ -43,10 +43,11 @@ export function startSearch(search_type, query, only_mopidy = false){
}
}
export function handleException(message, data = {}){
export function handleException(message, data = {}, description = null){
return {
type: 'HANDLE_EXCEPTION',
message: message,
description: description,
data: data
}
}