returning error message when fail to create repo