Skip to content

Commit

Permalink
Include configuration in debugging info
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed Sep 11, 2023
1 parent ba06165 commit 72ab4cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion node-src/ui/messages/errors/fatalError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function fatalError(
error: Error | Error[],
timestamp = new Date().toISOString()
) {
const { flags, options, sessionId, pkg, packageJson } = ctx;
const { flags, extraOptions, configuration, options, sessionId, pkg, packageJson } = ctx;
const { scripts = {} } = packageJson;
const email = link(pkg.bugs.email);
const website = link(pkg.docs);
Expand All @@ -30,6 +30,8 @@ export default function fatalError(
packageVersion: pkg.version,
...(storybook ? { storybook } : {}),
flags,
...(extraOptions && { extraOptions }),
...(configuration && { configuration }),
...(options && options.buildScriptName
? { buildScript: scripts[options.buildScriptName] }
: {}),
Expand Down

0 comments on commit 72ab4cc

Please sign in to comment.