mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[ML] Displaying JSON parsing errors when importing (#27577)
This commit is contained in:
parent
074a42749b
commit
0923a469f1
1 changed files with 4 additions and 0 deletions
|
@ -123,7 +123,11 @@ function toString(error) {
|
|||
errorObj.more = error.error.response;
|
||||
}
|
||||
return errorObj;
|
||||
}
|
||||
|
||||
if (error.error.message !== undefined) {
|
||||
// this will catch javascript errors such as JSON parsing issues
|
||||
return { msg: error.error.message };
|
||||
}
|
||||
} else {
|
||||
return { msg: error.error };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue