throw a proper error is -s is not passed