diff --git a/src/index.js b/src/index.js index 39530ec..99dffde 100644 --- a/src/index.js +++ b/src/index.js @@ -168,7 +168,7 @@ function find(query) { (entitySource, entitySourceName)=>{ entitySource[currentSearchOptions.entityLookupMethodName](query).then( (results)=>showResults(results, entitySourceName), - (error)=>console.log(`an error in the find: ${error}`)) + (error)=>showError(error, entitySourceName)) } ) } @@ -258,6 +258,11 @@ function showResults(results, entitySourceName) { } } +function showError(error, entitySourceName) { + let resultList = $(`#cwrc-${entitySourceName}-list`); + resultList.append(`
  • ${error}
  • `) +} + const panelDefs = [{ id: 'cwrc', title: 'CWRC'