[NudeMoon] use AuthRequiredException if no pages found
This commit is contained in:
@@ -208,7 +208,11 @@ internal class NudeMoonParser(
|
|||||||
}
|
}
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
parseFailed("Cannot find pages list")
|
if (isAuthorized) {
|
||||||
|
parseFailed("Cannot find pages list")
|
||||||
|
} else {
|
||||||
|
throw AuthRequiredException(source)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun getSortKey(sortOrder: SortOrder?) =
|
private fun getSortKey(sortOrder: SortOrder?) =
|
||||||
|
|||||||
Reference in New Issue
Block a user