It would be good if this function was in libcloud.common and raise exceptions so that users who have their own GUI or console UI can use it.