$result->closeCursor();
if (count($tags) !== count($tagIds)) {
- throw new TagNotFoundException(
- 'Tag(s) with id(s) ' . json_encode(array_diff($tagIds, array_keys($tags))) . ' not found'
- );
+ throw new TagNotFoundException(json_encode(array_diff($tagIds, array_keys($tags))));
}
return $tags;
*
* @return \OCP\SystemTag\ISystemTag[] array of system tags with tag id as key
*
- * @throws \OCP\SystemTag\TagNotFoundException if at least one given tag id did no exist
+ * @throws \InvalidArgumentException if at least one given tag ids is invalid (string instead of integer, etc.)
+ * @throws \OCP\SystemTag\TagNotFoundException if at least one given tag ids did no exist
+ * The message contains a json_encoded array of the ids that could not be found
*
* @since 9.0.0
*/