mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-14 15:11:13 +00:00
fix: error (#5269)
This commit is contained in:
@@ -13,7 +13,7 @@ export enum CommonErrEnum {
|
||||
}
|
||||
const datasetErr = [
|
||||
{
|
||||
statusText: CommonErrEnum.fileNotFound,
|
||||
statusText: CommonErrEnum.invalidParams,
|
||||
message: i18nT('common:error.invalid_params')
|
||||
},
|
||||
{
|
||||
|
@@ -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