mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Use errors instead of returning
This commit is contained in:
parent
c314b5352d
commit
b31a7815c8
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ define(function (require) {
|
|||
buckets: counts,
|
||||
};
|
||||
} catch (e) {
|
||||
return { error: e };
|
||||
return { error: e.message };
|
||||
}
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue