0
Fork 0
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:
Erika 2024-05-16 18:10:59 +02:00 committed by GitHub
parent 9332bb1c1f
commit 1fec4a6eb9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 3 deletions

View file

@ -0,0 +1,5 @@
---
"@astrojs/db": patch
---
Fixes some error messages not using the proper command to login or sync the project

View file

@ -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);