lib/composeSections.js
function circularSectionsError(sectionName, path) {
  const joinedPath = path.join(' -> ')
  const message = `Circular sections! Path: ${joinedPath} -> [${sectionName}]`
  return new Error(message)
}
function circularSectionsError(sectionName, path) {
  const joinedPath = path.join(' -> ')
  const message = `Circular sections! Path: ${joinedPath} -> [${sectionName}]`
  return new Error(message)
}
function circularSectionsError ( sectionName , path ) { const joinedPath = path . join ( ' -> ' ) const message = ` ${ joinedPath } ${ sectionName } ` return new Error ( message ) }
Returns a new error indicating circular sections.

@param  {String} sectionName
The section at which the circularity was determined.

@param  {String[]} path
The circular sections path.

@return {Error} Our beautiful error.
Returns a new error indicating circular sections .