msg -> message
This commit is contained in:
		@@ -253,22 +253,22 @@ function isFormData(value: any): value is FormData {
 | 
			
		||||
 | 
			
		||||
export class ResponseError extends Error {
 | 
			
		||||
	override name: "ResponseError" = "ResponseError";
 | 
			
		||||
	constructor(public response: Response, msg?: string) {
 | 
			
		||||
		super(msg);
 | 
			
		||||
	constructor(public response: Response, errorMessage?: string) {
 | 
			
		||||
		super(errorMessage);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export class FetchError extends Error {
 | 
			
		||||
	override name: "FetchError" = "FetchError";
 | 
			
		||||
	constructor(public cause: Error, msg?: string) {
 | 
			
		||||
		super(msg);
 | 
			
		||||
	constructor(public cause: Error, errorMessage?: string) {
 | 
			
		||||
		super(errorMessage);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export class RequiredError extends Error {
 | 
			
		||||
	override name: "RequiredError" = "RequiredError";
 | 
			
		||||
	constructor(public field: string, msg?: string) {
 | 
			
		||||
		super(msg);
 | 
			
		||||
	constructor(public field: string, errorMessage?: string) {
 | 
			
		||||
		super(errorMessage);
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user