Skip to content

Commit

Permalink
fix: raise TypeError on marshal_dump (#100)
Browse files Browse the repository at this point in the history
* fix: raise TypeError on marshal_dump

* chore: fix copyright header
  • Loading branch information
drstrangelooker authored Dec 18, 2024
1 parent e3951e7 commit 9e486ff
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/looker-sdk/error.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
############################################################################################
# The MIT License (MIT)
#
# Copyright (c) 2022 Looker Data Sciences, Inc.
# Copyright (c) 2024 Google, LLC
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
Expand Down Expand Up @@ -76,6 +76,12 @@ def message
response_message
end

# Looker SDK error objects (e.g. LookerSDK::BadRequest) raise a
# WebMock::NetConnectNotAllowedError if they are marshal dumped.
def marshal_dump
raise TypeError.new("Refusing to marshal")
end

# Error Doc URL
#
# @return [String]
Expand Down

0 comments on commit 9e486ff

Please sign in to comment.