mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00
V4.6.7-production (#759)
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import { replaceSensitiveLink } from '../string/tools';
|
||||
|
||||
export const getErrText = (err: any, def = '') => {
|
||||
const msg: string = typeof err === 'string' ? err : err?.message || def || '';
|
||||
msg && console.log('error =>', msg);
|
||||
return msg;
|
||||
return replaceSensitiveLink(msg);
|
||||
};
|
||||
|
Reference in New Issue
Block a user