Added proper error msgs in rafica.py