If no repo was found pkg stops working without any valuable clue

If for some reasons the configuration file is missing or no repo is defined,
pkg stop working and dies silently with this only log 
"Updating repository catalogue".

An extra error message may help users to debug the issue.