diff --git a/zh-cn/application-dev/reference/apis/js-apis-camera.md b/zh-cn/application-dev/reference/apis/js-apis-camera.md index 0663a1768ea8762e028d63b90004f4b4df8c2c2f..898ecaaa5865735119eac5e327ff26473b7c57fd 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-camera.md +++ b/zh-cn/application-dev/reference/apis/js-apis-camera.md @@ -937,7 +937,7 @@ function preLaunch(context: featureAbility.Context): void { cameraManager.prelaunch(); } catch (error) { let err = error as BusinessError; - console.error(`prelaunch error. Code: ${error.code}, message: ${error.message}`); + console.error(`prelaunch error. Code: ${err.code}, message: ${err.message}`); } } ```