FIx error when linking fails to be more informative