Skip to content

Commit

Permalink
fix: account for new logging
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re committed Nov 29, 2023
1 parent 9f74d11 commit fb9e046
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/astro/src/cli/preferences/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export async function preferences(subcommand: string, key: string, value: string

if (subcommand === 'set' && value === undefined) {
const type = typeof dlv(DEFAULT_PREFERENCES, key);
console.error(msg.formatErrorMessage(collectErrorMetadata(new Error(`Please provide a ${type} value for "${key}"`))));
console.error(msg.formatErrorMessage(collectErrorMetadata(new Error(`Please provide a ${type} value for "${key}"`)), true));
return 1;
}

Expand Down Expand Up @@ -129,7 +129,7 @@ async function setPreference(settings: AstroSettings, key: PreferenceKey, value:
return 0;
} catch (e) {
if (e instanceof Error) {
console.error(msg.formatErrorMessage(collectErrorMetadata(e)));
console.error(msg.formatErrorMessage(collectErrorMetadata(e), true));
return 1;
}
throw e;
Expand Down

0 comments on commit fb9e046

Please sign in to comment.