Send isHeadlessBuild flag in error reporting
Summary: Andrey's diff already ensures that we send the flag, this also adds it to the info string which makes it more visible. Reviewed By: lblasa Differential Revision: D36699070 fbshipit-source-id: 905eded9612b19ecaa35a841ec240af002e11611
This commit is contained in:
committed by
Facebook GitHub Bot
parent
11ff9b51e3
commit
db045a3b21
@@ -18,6 +18,7 @@ import {getRenderHostInstance} from '../RenderHost';
|
||||
type PlatformInfo = {
|
||||
arch: string;
|
||||
platform: string;
|
||||
isHeadlessBuild: boolean;
|
||||
unixname: string;
|
||||
versions: {
|
||||
[key: string]: string | undefined;
|
||||
@@ -85,6 +86,7 @@ export function getInfo(): Info {
|
||||
platformInfo = {
|
||||
arch: envInfo.os.arch,
|
||||
platform: envInfo.os.platform,
|
||||
isHeadlessBuild: envInfo.isHeadlessBuild,
|
||||
unixname: envInfo.os.unixname,
|
||||
versions: envInfo.versions,
|
||||
};
|
||||
@@ -101,7 +103,9 @@ export function getAppVersion(): string {
|
||||
|
||||
export function stringifyInfo(info: Info): string {
|
||||
const lines = [
|
||||
`Platform: ${info.platform} ${info.arch}`,
|
||||
`Platform: ${info.platform} ${info.arch} (${
|
||||
info.isHeadlessBuild ? 'headless' : 'desktop'
|
||||
})`,
|
||||
`Unixname: ${info.unixname}`,
|
||||
`Versions:`,
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user