Skip to content

Commit 3385270

Browse files
committed
Update message and move check statement
1 parent 08394d6 commit 3385270

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

index.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ async function zeroEks (args) {
2424
args.pathToNodeBinary = pathTo('node')
2525
}
2626

27-
if (checkForTranspiledCode(args.argv[0])) {
28-
console.warn('Transpiled code is not supported')
29-
}
30-
3127
validate(args)
3228
const { collectOnly, visualizeOnly, writeTicks, treeDebug, mapFrames, visualizeCpuProfile } = args
3329

@@ -44,6 +40,11 @@ async function zeroEks (args) {
4440
if (visualizeCpuProfile) return cpuProfileVisualization(args)
4541

4642
args.title = args.title || `node ${args.argv.join(' ')}`
43+
44+
if (checkForTranspiledCode(args.argv[0])) {
45+
console.warn('0x does not support transpiled code yet.')
46+
}
47+
4748
var { ticks, pid, folder, inlined } = await startProcessAndCollectTraceData(args)
4849

4950
if (treeDebug === true) {

0 commit comments

Comments
 (0)