github.com/manicqin/nomad@v0.9.5/ui/app/utils/message-from-adapter-error.js (about) 1 // Returns a single string based on the response the adapter received 2 export default function messageFromAdapterError(error) { 3 if (error.errors) { 4 return error.errors.mapBy('detail').join('\n\n'); 5 } 6 }