Skip to content

Commit

Permalink
comment console error
Browse files Browse the repository at this point in the history
  • Loading branch information
mirsella committed Jan 6, 2025
1 parent 3f21345 commit c512c03
Show file tree
Hide file tree
Showing 19 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ async function checkCompletedProfile() {
completed_profil.value = response.complete_profile;
} catch (error) {
console.error(error);
// console.error(error);
}
}
</script>
2 changes: 1 addition & 1 deletion components/auth/authSignIn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ async function authentification() {
}
} catch (error) {
// message.value = "An error occurred during sign in";
console.error("Failed to sign in:", error);
// console.error("Failed to sign in:", error);
}
}
Expand Down
2 changes: 1 addition & 1 deletion components/user/userMail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ async function submit() {
if (error.data && error.data.message) {
message.value = error.data.message;
}
console.error("Erreur lors de la mise à jour du nom d'utilisateur :", error);
// console.error("Erreur lors de la mise à jour du nom d'utilisateur :", error);
}
}
</script>
2 changes: 1 addition & 1 deletion components/user/userPassword.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async function submit() {
});
message.value = "Password updated successfully";
} catch (error) {
console.error("Erreur lors de la mise à jour du nom d'utilisateur :", error);
// console.error("Erreur lors de la mise à jour du nom d'utilisateur :", error);
}
}
</script>
2 changes: 1 addition & 1 deletion components/user/userUsername.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async function submit() {
if ((error as any).data && (error as any).data.message) {
message.value = (error as any).data.message;
}
console.error(
// console.error(
"Erreur lors de la mise à jour du nom d'utilisateur :",
error,
);

Check failure on line 95 in components/user/userUsername.vue

View workflow job for this annotation

GitHub Actions / Typecheck and Build Nuxt App

Expression expected.
Expand Down
2 changes: 1 addition & 1 deletion middleware/auth.global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ export default defineNuxtRouteMiddleware(async (to) => {
return navigateTo("/");
}
} catch (error) {
console.error(error);
// console.error(error);
}
});
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import fs from "fs";
function get_from_env(field: string): string {
const env = process.env[field];
if (!env) {
console.error(field, "ENV VARIABLE ISN'T SET !!!");
// console.error(field, "ENV VARIABLE ISN'T SET !!!");
}
return env || "";
}
Expand Down
2 changes: 1 addition & 1 deletion pages/modify_profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ onMounted(async () => {
console.log(response);
} catch (error) {
console.error(error);
// console.error(error);
}
// get update from other components
await updateName();
Expand Down
2 changes: 1 addition & 1 deletion pages/search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ const searchMovies = async () => {
checkAndLoadMoreContent();
} catch (error) {
loading.value = false;
console.error("Error searching movies:", error);
// console.error("Error searching movies:", error);
} finally {
loading.value = false;
}
Expand Down
2 changes: 1 addition & 1 deletion pages/user_profiles.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ onMounted(async () => {
// @ts-ignore
users.value = response.users;
} catch (error) {
console.error(error);
// console.error(error);
}
$eventBus.emit("CompleteProfil", true); // Emit the event to show the nav bar
Expand Down
2 changes: 1 addition & 1 deletion server/api/auth/[...].ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default NuxtAuthHandler({
return null;
}
} catch (error) {
console.error("Authentication error:", error);
// console.error("Authentication error:", error);
return null;
}
},
Expand Down
2 changes: 1 addition & 1 deletion server/api/auth/register-auth.post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default defineEventHandler(async (event) => {
});
}
} catch (error) {
console.error("Error while creating user", error);
// console.error("Error while creating user", error);
return { message: "An error occurred", status: 400 };
}

Expand Down
2 changes: 1 addition & 1 deletion server/api/movies/[id]/index.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export default defineEventHandler(async (event) => {

return movie_infos;
} catch (error) {
console.error("Error in movie/id search:", error);
// console.error("Error in movie/id search:", error);
return error;
}
});
4 changes: 2 additions & 2 deletions server/api/movies/[id]/stream.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ function convert_to_webm(
// );
// })
.on("error", (err, _stdout, stderr) => {
console.error("An error occurred: " + err.message);
console.error("FFmpeg stderr: " + stderr);
// console.error("An error occurred: " + err.message);
// console.error("FFmpeg stderr: " + stderr);
})
.on("end", () => {
// process.stdout.write(`Processing: 100% done\r`);
Expand Down
2 changes: 1 addition & 1 deletion server/api/movies/genres.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default defineEventHandler(async (event) => {

return data;
} catch (error) {
console.error("Error in genre fetching:", error);
// console.error("Error in genre fetching:", error);
return createError({
statusCode: 400,
statusMessage: "Error fetching genres",
Expand Down
2 changes: 1 addition & 1 deletion server/api/movies/index.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default defineEventHandler(async (event) => {

return data;
} catch (error) {
console.error("Error in movie search:", error);
// console.error("Error in movie search:", error);
return createError({
statusCode: 400,
statusMessage: "Error fetching movies infos",
Expand Down
2 changes: 1 addition & 1 deletion server/api/movies/search.get.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default defineEventHandler(async (event) => {

return data;
} catch (error) {
console.error("Error in movie search:", error);
// console.error("Error in movie search:", error);
return createError({
statusCode: 400,
statusMessage: "Error fetching movies",
Expand Down
2 changes: 1 addition & 1 deletion server/api/users/modify/picture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default defineEventHandler(async (event) => {
status: 200,
};
} catch (error: any) {
console.error("Error during file upload:", error);
// console.error("Error during file upload:", error);
throw createError({
statusCode: error.statusCode || 500,
message: error.message || "Internal server error",
Expand Down
4 changes: 2 additions & 2 deletions server/api/users/profileImage/[imageName]/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default defineEventHandler(async (event: H3Event) => {
if (error.code === 'ENOENT') {
throw createError({ statusCode: 404, message: 'Image not found' });
}
console.error("Error serving image:", error);
// console.error("Error serving image:", error);
throw createError({ statusCode: 400, message: 'Internal server error' });
}
});
});

0 comments on commit c512c03

Please sign in to comment.