Update the error handling of lib/Linker.