Will it look better?

raise type.constantize , error["Error"]["Message"]

so we can remove msg and error vars