Throwing an error if src is not supplied