mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Improve error handling in ShowSchedules component and remove unnecessary logging in schedule API
- Updated error messaging in the ShowSchedules component to provide more informative feedback when a schedule fails to run. - Removed redundant console logging in the schedule API to streamline error handling and improve code cleanliness.
This commit is contained in:
parent
1f6ba45c12
commit
c69992c4f0
@ -139,9 +139,7 @@ export const ShowSchedules = ({ applicationId }: Props) => {
|
||||
.catch((error) => {
|
||||
console.log(error);
|
||||
toast.error(
|
||||
error instanceof Error
|
||||
? error.message
|
||||
: "Error running schedule",
|
||||
`Error running schedule: ${error}`,
|
||||
);
|
||||
});
|
||||
}}
|
||||
|
@ -99,7 +99,6 @@ export const scheduleRouter = createTRPCRouter({
|
||||
await runCommand(input.scheduleId);
|
||||
return true;
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
throw new TRPCError({
|
||||
code: "INTERNAL_SERVER_ERROR",
|
||||
message:
|
||||
|
Loading…
Reference in New Issue
Block a user