File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11check :
22 @output=$$(yarn run --silent prettier --check src 2>&1 ) || { echo " $$ output" ; exit 1; }
33 @output=$$(yarn run --silent eslint src 2>&1 ) || { echo " $$ output" ; exit 1; }
4+ @yarn build
45
56fix :
67 @output=$$(yarn run --silent prettier --write src 2>&1 ) || { echo " $$ output" ; exit 1; }
@@ -12,9 +13,6 @@ GIT_VERSION = `git rev-parse --short HEAD`
1213run :
1314 yarn dev
1415
15- build :
16- yarn build
17-
1816gen :
1917 yarn run openapi-ts -i http://leda.sao.ru/api/openapi.json -o ./src/clients/backend
2018 yarn run openapi-ts -i http://leda.sao.ru/admin/api/openapi.json -o ./src/clients/admin
Original file line number Diff line number Diff line change @@ -63,8 +63,9 @@ async function fetcher(
6363 } ) ;
6464
6565 if ( response . error || ! response . data ) {
66+ const err = response . error ;
6667 throw new Error (
67- `Error during query: ${ typeof response . error === "object" ? JSON . stringify ( response . error ) : response . error } ` ,
68+ `Error during query: ${ typeof err === "object" ? JSON . stringify ( err ) : err } ` ,
6869 ) ;
6970 }
7071
Original file line number Diff line number Diff line change @@ -139,8 +139,9 @@ async function fetcher(
139139 }
140140
141141 if ( response . error || ! response . data ) {
142+ const err = response . error ;
142143 throw new Error (
143- `Error during query: ${ typeof response . error === "object" ? JSON . stringify ( response . error ) : response . error } ` ,
144+ `Error during query: ${ typeof err === "object" ? JSON . stringify ( err ) : err } ` ,
144145 ) ;
145146 }
146147
You can’t perform that action at this time.
0 commit comments