github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/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 }