mirror of
https://github.com/wassname/talk.git
synced 2026-07-23 13:10:20 +08:00
changes
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
export interface ExceptionError {
|
||||
message: string;
|
||||
stack: string;
|
||||
}
|
||||
@@ -2,6 +2,5 @@ export { default as NetworkError } from "./networkError";
|
||||
export { default as UnknownServerError } from "./unknownServerError";
|
||||
export { default as BadUserInputError } from "./badUserInputError";
|
||||
export { default as GraphQLError } from "./graphqlError";
|
||||
export { default as ExceptionError } from "./exceptionError";
|
||||
|
||||
export * from "./graphqlError";
|
||||
|
||||
@@ -17,6 +17,8 @@ const buildOptions = (inputOptions: RequestInit = {}) => {
|
||||
return options;
|
||||
};
|
||||
|
||||
// TODO (bc): Wrap response errors into error objects once server errors have been defined
|
||||
|
||||
const handleResp = async (res: Response) => {
|
||||
if (res.status === 404) {
|
||||
const response = await res.text();
|
||||
|
||||
Reference in New Issue
Block a user