Change error message.

This commit is contained in:
Wu-cheng Li
2009-05-04 19:38:43 +08:00
parent 6a1ae64f77
commit fa3e556279

View File

@@ -108,7 +108,8 @@ static void android_hardware_Camera_native_setup(JNIEnv *env, jobject thiz, jobj
sp<Camera> camera = Camera::connect();
if (camera == NULL) {
jniThrowException(env, "java/lang/RuntimeException", "Out of memory");
jniThrowException(env, "java/lang/RuntimeException",
"Fail to connect to camera service");
return;
}