Skip to content

Commit

Permalink
fix: improve console message when unlinking from directory without a …
Browse files Browse the repository at this point in the history
…netlify.toml (#6897)

Co-authored-by: Dylan Spyer <[email protected]>
Co-authored-by: Daniel Lew <[email protected]>
  • Loading branch information
3 people authored Oct 25, 2024
1 parent 6a15c79 commit 622098e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/unlink/unlink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ export const unlink = async (options: OptionValues, command: BaseCommand) => {
siteId: siteData.id || siteId,
})

if (site) {
if (site && site.configPath) {
log(`Unlinked ${site.configPath} from ${siteData ? siteData.name : siteId}`)
} else {
log('Unlinked site')
log(`Unlinked from ${siteData ? siteData.name : siteId}`)
}
}

0 comments on commit 622098e

Please sign in to comment.