Skip to content
Snippets Groups Projects
Commit 3001bc4e authored by Piotr Gawron's avatar Piotr Gawron
Browse files

provide url in error report

parent c3acb60b
No related branches found
No related tags found
2 merge requests!223reset the pin numbers before search results are fetch (so the results will be...,!199Resolve "[MIN-321] form for reporting errors in minerva"
......@@ -6,4 +6,8 @@ describe('createErrorData', () => {
const error = createErrorData(new Error('hello'));
expect(error.stacktrace).not.toEqual('');
});
it('should add url', () => {
const error = createErrorData(new Error('hello'));
expect(error.url).not.toBeNull();
});
});
......@@ -9,7 +9,7 @@ export const createErrorData = (error: Error | SerializedError | undefined): Err
}
const errorData: ErrorData = {
url: null, // TODO
url: window.location.href,
login: null, // TODO provide user login
browser: null, // TODO
comment: null,
......
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