lib/neetob/cli/github/labels/upsert.rb in neetob-0.1.4 vs lib/neetob/cli/github/labels/upsert.rb in neetob-0.1.5
- old
+ new
@@ -75,9 +75,11 @@
rescue Octokit::NotFound
client.add_label(
app, label_details["name"], label_details["color"] || WHITE_COLOR_HEX_CODE,
label_details)
ui.success("Label \"#{label_details["name"]}\" created successfully")
+ rescue StandardError => e
+ ExceptionHandler.new(e).process
end
end
def default_labels_file_path
File.expand_path("../../../../../data/github-labels.json", __dir__)