Since the new errors are not an instance of an error object, when they are thrown by callers to the AMP error service, the service does not recognize them as a valid error. Possible fixes are returning to the mutated-error approach, or creating a custom error type decorated with the xhr data.
This error manifests itself as Error: [Object object] in the console.
Since the new errors are not an instance of an error object, when they are thrown by callers to the AMP error service, the service does not recognize them as a valid error. Possible fixes are returning to the mutated-error approach, or creating a custom error type decorated with the xhr data.
This error manifests itself as
Error: [Object object]in the console.