diff --git a/packages/reactivity/src/reactive.ts b/packages/reactivity/src/reactive.ts index f6fcbbdb98f..a3e7ecc7b56 100644 --- a/packages/reactivity/src/reactive.ts +++ b/packages/reactivity/src/reactive.ts @@ -248,7 +248,11 @@ function createReactiveObject( ) { if (!isObject(target)) { if (__DEV__) { - warn(`value cannot be made reactive: ${String(target)}`) + warn( + `value cannot be made ${isReadonly ? 'readonly' : 'reactive'}: ${String( + target, + )}`, + ) } return target }