netsuite icon indicating copy to clipboard operation
netsuite copied to clipboard

record.errors is always non-empty because it contains a "null" error

Open ericcj opened this issue 2 years ago • 1 comments

at least after an upsert maybe after any request it looks like this "errors":[{"type":null,"code":null,"message":null}]

ericcj avatar Aug 18 '23 18:08 ericcj

yes , i just had this last week this code used to work @transfer_order.errors.nil? || @transfer_order.errors.empty? vs what I had to change @transfer_order.errors.nil? || @transfer_order.errors.empty? ||@transfer_order.errors.all? { |error| error.message.nil? }

gbs4ever avatar Mar 29 '24 17:03 gbs4ever