Closed hugolpz closed 3 years ago
Kanasimi recommended using :
try{
// do your things
}catch(error){
console.log(error)
}
I was able to get a more meaningful error message:
{
code: 'cantmovefile',
info: 'You do not have permission to move files.',
'*': 'See https://commons.wikimedia.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes.'
}
So I requested file mover user-rights on Commons, should be ok ! 👍🏼
Issue can be closed ! 👯
[Please close this issue. Already solved. Just here to create some record / documentation.]
I got an error message with another of my code...
commons-rename.js: