mirror of
https://github.com/apache/superset.git
synced 2026-04-07 18:35:15 +00:00
feat: return security errors in the SIP-40 format (#9796)
This commit is contained in:
@@ -49,7 +49,7 @@ describe('getClientErrorObject()', () => {
|
||||
errors: [
|
||||
{
|
||||
errorType: ErrorTypeEnum.GENERIC_DB_ENGINE_ERROR,
|
||||
extra: { engine: 'presto' },
|
||||
extra: { engine: 'presto', link: 'https://www.google.com' },
|
||||
level: 'error',
|
||||
message: 'presto error: test error',
|
||||
},
|
||||
@@ -60,6 +60,7 @@ describe('getClientErrorObject()', () => {
|
||||
return getClientErrorObject(new Response(jsonErrorString)).then(
|
||||
errorObj => {
|
||||
expect(errorObj.error).toEqual(jsonError.errors[0].message);
|
||||
expect(errorObj.link).toEqual(jsonError.errors[0].extra.link);
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user