feat: Add error handler to CWIL
This commit is contained in:
1 parent
e7b32cc51e
commit
70e4c55920
4 files changed
+23
-1
No files matched your search
@@ -14,6 +14,7 @@ import {
|
||||
HangingProtocolService,
|
||||
CineService,
|
||||
UserAuthenticationService,
|
||||
errorHandler
|
||||
// utils,
|
||||
} from '@ohif/core';
|
||||
|
||||
@@ -62,6 +63,12 @@ function appInit(appConfigOrFunc, defaultExtensions) {
|
||||
UserAuthenticationService,
|
||||
]);
|
||||
|
||||
errorHandler.getHTTPErrorHandler = () => {
|
||||
if (typeof appConfig.httpErrorHandler === 'function') {
|
||||
return appConfig.httpErrorHandler;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Example: [ext1, ext2, ext3]
|
||||
* Example2: [[ext1, config], ext2, [ext3, config]]
|
||||
|
||||
Reference in new issue
Block a user