-
-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raise error message from SOAP response when initialize action fails
The current error handling approach of the initalize action is to raise a generic failure message. For example: NetSuite::Records::ItemReceipt.initialize with #<NetSuite::Records::PurchaseOrder:0x00007f561d8717c8> failed. This does not provide any of the useful context from the SOAP response which would be more helpful for debugging the issue. Support for fetching error context from the SOAP response XML has been added to other actions, for example: * 3b756b9 * e640196 * 70ab077 Adding similar support to the initialize action, and using the message of the first error in the SOAP XML for the InitializationError raise, would provide more useful error context for debugging.
- Loading branch information
Daniel Beban
committed
Jan 22, 2024
1 parent
079154e
commit 4012126
Showing
3 changed files
with
25 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters