mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
test: report hexadecimal status codes on windows (#19597)
This commit is contained in:
@@ -123,7 +123,8 @@ async function runRemoteBasedElectronTests () {
|
||||
stdio: 'inherit'
|
||||
})
|
||||
if (status !== 0) {
|
||||
throw new Error(`Electron tests failed with code ${status}.`)
|
||||
const textStatus = process.platform === 'win32' ? `0x${status.toString(16)}` : status.toString()
|
||||
throw new Error(`Electron tests failed with code ${textStatus}.`)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -135,7 +136,8 @@ async function runMainProcessElectronTests () {
|
||||
stdio: 'inherit'
|
||||
})
|
||||
if (status !== 0) {
|
||||
throw new Error(`Electron tests failed with code ${status}.`)
|
||||
const textStatus = process.platform === 'win32' ? `0x${status.toString(16)}` : status.toString()
|
||||
throw new Error(`Electron tests failed with code ${textStatus}.`)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user