Add more debugging information to JS error message

Error when using ship.setCargoType from it not being CARGO_NOT_CARGO will be far easier to track down if it says which ship caused the problem.