mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-07 20:44:05 +09:00
## Description This is fast fix, in the future we would need to review all out errors Intead of this <img width="415" alt="image" src="https://github.com/webstudio-is/webstudio-builder/assets/5077042/78e214ca-2780-4449-b0a7-9854456c4eef"> We are now trying to login user first, and then show this <img width="386" alt="image" src="https://github.com/webstudio-is/webstudio-builder/assets/5077042/0744ed68-eedd-47f7-a6c0-ccf049bd47e4"> Also instead of Unexpected Error showing real error. ## Steps for reproduction 1. click button 2. expect xyz ## Code Review - [ ] hi @kof, I need you to do - conceptual review (architecture, feature-correctness) - detailed review (read every line) - test it on preview ## Before requesting a review - [ ] made a self-review - [ ] added inline comments where things may be not obvious (the "why", not "what") ## Before merging - [ ] tested locally and on preview environment (preview dev login: 5de6) - [ ] updated [test cases](https://github.com/webstudio-is/webstudio-builder/blob/main/apps/builder/docs/test-cases.md) document - [ ] added tests - [ ] if any new env variables are added, added them to `.env.example` and the `builder/env-check.js` if mandatory
8 lines
193 B
TypeScript
8 lines
193 B
TypeScript
import { customErrorFactory } from "ts-custom-error";
|
|
|
|
export const AuthorizationError = customErrorFactory(
|
|
function AuthorizationError(message: string) {
|
|
this.message = message;
|
|
}
|
|
);
|