Skip to content

Commit

Permalink
console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
ceddybi committed Feb 14, 2024
1 parent a11140c commit dc9de7c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const getAuthApi = async (args: GetAuth): Promise<any> => {

}
catch (error) {
console.error("Error getAuthApi", error);
console.log("Error getAuthApi", error?.message || "");
const newAuth = { ...state.auth, res: { message: error.message || "", success: false } };
await setState({ ...state, auth: newAuth });
return null;
Expand Down Expand Up @@ -105,15 +105,15 @@ export const getMainApi = async (): Promise<any> => {
const resData: any = response.data;
if (!resData.success) {
const resMessage = _get(resData, "data.message", "");
console.error("Error getMainApi", resMessage);
console.log("Error getMainApi", resMessage);
await setState({ ...state, auth: { ...state.auth, res: { success: false, message: resMessage } } });
}

return resData;

}
catch (error) {
console.error("Error getMainApi", error);
console.log("Error getMainApi", error?.message);
return null;
}

Expand Down Expand Up @@ -149,14 +149,14 @@ export const getAppApi = async (): Promise<any> => {

if (!resData.success) {
const resMessage = resData.message;
console.error("resData.success", resMessage);
console.log("resData.success", resMessage);
await setState({ ...state, auth: { ...state.auth, res: { success: false, message: resMessage } } });
}
return resData;

}
catch (error) {
console.error("Error getAppApi", error);
console.log("Error getAppApi", error?.message);
return null;
}

Expand Down
4 changes: 2 additions & 2 deletions src/config/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const gotoMainPage = async (url: string) => {

}
catch (error) {
console.error("Error gotoAppPage", error);
console.log("Error gotoAppPage", error?.message);
}
}

Expand Down Expand Up @@ -150,6 +150,6 @@ export const gotoAppPage = async (job: AppJob) => {

}
catch (error) {
console.error("Error gotoAppPage", error);
console.log("Error gotoAppPage", error?.message);
}
}
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const getAppAuth = async (urlLinking?: string) => {
}
}
catch (error) {
console.error("Error", error);
console.log("Error", error?.message);
dialog.showErrorBox(error.message || "Error opening app", "Please try again");
}
}
Expand Down Expand Up @@ -214,7 +214,7 @@ async function runApplying(ondemandJob?: AppJob): Promise<any> {

}
catch (error) {
console.error("Error startApplying", error);
console.log("Error startApplying", error?.message);
return null;

} finally {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/state/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export const addJob = async (job: AppJob | AppJob[]): Promise<boolean> => {

}
catch (error) {
console.error("error addJob", error);
console.log("error addJob", error?.message);
return false;
}

Expand Down

0 comments on commit dc9de7c

Please sign in to comment.