You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewArgumentException("Expected dynamic parameter of type "+typeof(MongoContentParameters).FullName);
355
355
}
356
356
357
357
id=RemovePathPrefix(id);
358
358
if(!string.IsNullOrEmpty(id))
359
359
{
360
-
ThrowTerminatingError(newErrorRecord(newInvalidOperationException($"MongoDb does not support overwrite a gridfs-entry. Delete existing element first."),"FileAlreadyExist",ErrorCategory.InvalidArgument,null));
360
+
ThrowTerminatingError(newErrorRecord(newInvalidOperationException($"Writing Content to an existing ID is not supported."),"FileAlreadyExist",ErrorCategory.InvalidArgument,null));
ThrowTerminatingError(newErrorRecord(newInvalidOperationException($"More than one entry with the name {param.Name} exists and therefore cannot be overwritten."),"FileAlreadyExist",ErrorCategory.InvalidArgument,null));
379
+
}
380
+
}
381
+
else
382
+
{
383
+
ThrowTerminatingError(newErrorRecord(newInvalidOperationException($"A file with the name {param.Name} already exists. Try -Overwrite."),"FileAreadyExist",ErrorCategory.InvalidArgument,null));
0 commit comments