Skip to content
Snippets Groups Projects
Unverified Commit 1eba936a authored by Awais Jibran's avatar Awais Jibran Committed by GitHub
Browse files

Merge pull request #18730 from edx/aj/update-log

Update log for library not found
parents 5fbbf250 a53a8a1f
No related merge requests found
......@@ -150,7 +150,7 @@ class LibraryToolsService(object):
library_key = library_key.replace(branch=ModuleStoreEnum.BranchName.library, version_guid=version)
library = self._get_library(library_key)
if library is None:
raise ValueError("Requested library not found.")
raise ValueError("Requested library {0} not found.".format(library_key))
if user_perms and not user_perms.can_read(library_key):
raise PermissionDenied()
filter_children = (dest_block.capa_type != ANY_CAPA_TYPE_VALUE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment