you'd hafta determine what you did wrong, we can't see it, but you must have tied a hot wire straight to ground, maybe you had the alternator connections wrong .... and when you connected the last battery cable you should have seen a fat spark and immediately removed the cable to prevent melting things
Bill