Show error and exit if can't read the trait file