Skip to content

Commit fdd1262

Browse files
committed
fix: clarify error message for missing 'prefabPath' in create_from_gameobject command
1 parent 9002957 commit fdd1262

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UnityMcpBridge/Editor/Tools/Prefabs/ManagePrefabs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ private static object CreatePrefabFromGameObject(JObject @params)
158158
string requestedPath = @params["prefabPath"]?.ToString();
159159
if (string.IsNullOrWhiteSpace(requestedPath))
160160
{
161-
return Response.Error("'prefabPath' (or 'path') parameter is required for create_from_gameobject.");
161+
return Response.Error("'prefabPath' parameter is required for create_from_gameobject.");
162162
}
163163

164164
string sanitizedPath = AssetPathUtility.SanitizeAssetPath(requestedPath);

0 commit comments

Comments
 (0)