- Add Strike API credentials configuration - Implement Strike node with 9 resources (Account, Balance, Currency Exchange, Deposit, Invoice, Payment, Payment Method, Payout, Rates) - Add comprehensive operation descriptions for all resources - Include CLAUDE.MD documentation - Set up build configuration with TypeScript, ESLint, and Prettier 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
25 lines
428 B
JavaScript
25 lines
428 B
JavaScript
'use strict';
|
|
|
|
// Format orchestrator errors
|
|
/* istanbul ignore next */
|
|
function formatError(e) {
|
|
if (!e.error) {
|
|
return e.message;
|
|
}
|
|
|
|
// PluginError
|
|
if (typeof e.error.showStack === 'boolean') {
|
|
return e.error.toString();
|
|
}
|
|
|
|
// Normal error
|
|
if (e.error.stack) {
|
|
return e.error.stack;
|
|
}
|
|
|
|
// Unknown (string, number, etc.)
|
|
return new Error(String(e.error)).stack;
|
|
}
|
|
|
|
module.exports = formatError;
|