Skip to content

Commit 2025d96

Browse files
committed
make error message more helpful
1 parent eee279c commit 2025d96

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/api/scheduler/routes/queues.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const jobs: FastifyPluginCallback = (fastify, opts, done) => {
6464
const INVALID_ENDPOINT_ERROR = {
6565
statusCode: 400,
6666
error: "Bad Request",
67-
message: "endpoint needs to be absolute.",
67+
message: "endpoint needs to be absolute URL.",
6868
};
6969

7070
const INVALID_TIMEZONE_ERROR = {

src/api/test/jobs.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ describeAcrossBackends("Jobs", (backend) => {
553553
.expect(400, {
554554
statusCode: 400,
555555
error: "Bad Request",
556-
message: "endpoint needs to be absolute.",
556+
message: "endpoint needs to be absolute URL.",
557557
});
558558
});
559559

0 commit comments

Comments
 (0)