Skip to content
Snippets Groups Projects
Commit 720a0828 authored by piotr.kupczyk@id.ethz.ch's avatar piotr.kupczyk@id.ethz.ch
Browse files

SSDM-13152 : Exports for master data and metadata UI - fix error handling

parent 61caaa30
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
...@@ -95,8 +95,8 @@ export default class GridWithSettings extends React.PureComponent { ...@@ -95,8 +95,8 @@ export default class GridWithSettings extends React.PureComponent {
} else { } else {
AppController.getInstance().errorChange(JSON.stringify(result)) AppController.getInstance().errorChange(JSON.stringify(result))
} }
} catch (error) { } catch (e) {
AppController.getInstance().errorChange(JSON.stringify(error)) AppController.getInstance().errorChange(JSON.stringify(e.message))
} finally { } finally {
AppController.getInstance().loadingChange(false) AppController.getInstance().loadingChange(false)
} }
......
...@@ -255,9 +255,9 @@ class Facade { ...@@ -255,9 +255,9 @@ class Facade {
const execution = executions[executionId] const execution = executions[executionId]
if (!execution) { if (!execution) {
throw Error('Execution id: ' + executionId + ' not found.') throw new Error('Execution id: ' + executionId + ' not found.')
} else if (execution.details.error !== null) { } else if (execution.details.error !== null) {
throw Error(execution.details.error.message) throw new Error(execution.details.error.message)
} else if ( } else if (
execution.details.results !== null && execution.details.results !== null &&
execution.details.results.length > 0 execution.details.results.length > 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment