Skip to content

Commit bad9301

Browse files
committed
ArgumentError if no shop or token given
1 parent fd8a83e commit bad9301

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/shopify_api/graphql/bulk.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ def new(shop, token, options = nil)
3232

3333
class Executor # :nodoc:
3434
def initialize(shop, token, options)
35+
raise ArgumentError, "shop required" if shop.to_s.strip.empty?
36+
raise ArgumentError, "token required" if token.to_s.strip.empty?
37+
3538
@gid = TinyGID.new("shopify")
3639

3740
@create = Bulk::Create.new(shop, token, options)

0 commit comments

Comments
 (0)