mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-02-23 14:39:32 +08:00
fix(build): Improve error message.
This commit is contained in:
parent
933e4fa35a
commit
258d4adc29
@ -1123,7 +1123,7 @@ describe('build requests', () => {
|
||||
],
|
||||
};
|
||||
await expect(buildPages({ components, context })).rejects.toThrow(
|
||||
'Request "my.request" includes a period (".")'
|
||||
'Request id "my.request" should not include a period (".").'
|
||||
);
|
||||
});
|
||||
|
||||
|
@ -28,7 +28,7 @@ function buildRequest({ request, blockContext }) {
|
||||
);
|
||||
}
|
||||
if (request.id.includes('.')) {
|
||||
throw new Error(`Request "${request.id}" includes a period (".")`);
|
||||
throw new Error(`Request id "${request.id}" should not include a period (".").`);
|
||||
}
|
||||
|
||||
request.auth = blockContext.auth;
|
||||
|
Loading…
Reference in New Issue
Block a user