Commit 3fe8c6b4 authored by Samantha Ming's avatar Samantha Ming

Add sentry to author select dropdown

parent 653fb785
import * as Sentry from '@sentry/browser';
import * as types from './mutation_types';
import axios from '~/lib/utils/axios_utils';
import createFlash from '~/flash';
......@@ -26,6 +27,9 @@ export default {
},
})
.then(({ data }) => dispatch('receiveAuthorsSuccess', data))
.catch(() => dispatch('receiveAuthorsError'));
.catch(error => {
Sentry.captureException(error);
dispatch('receiveAuthorsError');
});
},
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment