Skip to content

Commit b092ab1

Browse files
committed
test: swap test case back
1 parent 2f91e4a commit b092ab1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/core/src/shared/telemetry/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ function validateMetadata(metricName: string, metadata: MetadataObj, fatal: bool
334334
const fullMsg = msgPrefix + msg + (includeSuffix ? preferRunSuffix : '')
335335
logger.warn(fullMsg)
336336
if (fatal) {
337-
throw new Error(fullMsg)
337+
throw new Error('telemetry: ' + fullMsg)
338338
}
339339
}
340340

packages/core/src/test/lambda/vue/remoteInvoke/invokeLambda.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ describe('RemoteInvokeWebview', () => {
152152
assert.ok(err instanceof Error)
153153
assert.strictEqual(
154154
err.message,
155-
'invalid Metric: "lambda_invokeRemote" emitted with result=Failed but without the `reason` property. Consider using `.run()` instead of `.emit()`, which will set these properties automatically. See https://github.com/aws/aws-toolkit-vscode/blob/master/docs/telemetry.md#guidelines'
155+
'telemetry: invalid Metric: "lambda_invokeRemote" emitted with result=Failed but without the `reason` property. Consider using `.run()` instead of `.emit()`, which will set these properties automatically. See https://github.com/aws/aws-toolkit-vscode/blob/master/docs/telemetry.md#guidelines'
156156
)
157157
}
158158

0 commit comments

Comments
 (0)