mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-21 03:10:50 +00:00
fix: error (#5269)
This commit is contained in:
@@ -15,3 +15,10 @@ export const getErrText = (err: any, def = ''): any => {
|
||||
// msg && console.log('error =>', msg);
|
||||
return replaceSensitiveText(msg);
|
||||
};
|
||||
|
||||
export class UserError extends Error {
|
||||
constructor(message: string) {
|
||||
super(message);
|
||||
this.name = 'UserError';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user