mirror of
https://github.com/withastro/astro.git
synced 2025-01-27 22:19:04 -05:00
fix: use astro cli command instead of astro db's (#11070)
* fix: use astro cli command instead of astro db's * chore: changeset
This commit is contained in:
parent
9332bb1c1f
commit
1fec4a6eb9
2 changed files with 8 additions and 3 deletions
5
.changeset/metal-rocks-design.md
Normal file
5
.changeset/metal-rocks-design.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@astrojs/db": patch
|
||||
---
|
||||
|
||||
Fixes some error messages not using the proper command to login or sync the project
|
|
@ -67,7 +67,7 @@ async function getWorkspaceId(): Promise<string> {
|
|||
if (res.status === 401) {
|
||||
throw new Error(
|
||||
`${bgRed('Unauthorized')}\n\n Are you logged in?\n Run ${cyan(
|
||||
'astro db login'
|
||||
'astro login'
|
||||
)} to authenticate and then try linking again.\n\n`
|
||||
);
|
||||
}
|
||||
|
@ -115,7 +115,7 @@ export async function createNewProject({
|
|||
if (res.status === 401) {
|
||||
console.error(
|
||||
`${bgRed('Unauthorized')}\n\n Are you logged in?\n Run ${cyan(
|
||||
'astro db login'
|
||||
'astro login'
|
||||
)} to authenticate and then try linking again.\n\n`
|
||||
);
|
||||
process.exit(1);
|
||||
|
@ -149,7 +149,7 @@ export async function promptExistingProjectName({ workspaceId }: { workspaceId:
|
|||
if (res.status === 401) {
|
||||
console.error(
|
||||
`${bgRed('Unauthorized')}\n\n Are you logged in?\n Run ${cyan(
|
||||
'astro db login'
|
||||
'astro login'
|
||||
)} to authenticate and then try linking again.\n\n`
|
||||
);
|
||||
process.exit(1);
|
||||
|
|
Loading…
Add table
Reference in a new issue