diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/data.c | 2 | ||||
| -rw-r--r-- | src/tui.c | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -566,6 +566,8 @@ track_move(struct track *track, struct tag *tag) struct track *new; char *newpath; + errno = 0; + newpath = aprintf("%s/%s", tag->fpath, track->name); if (path_exists(newpath)) { free(newpath); @@ -590,8 +590,8 @@ delete_current_track(void) USER_STATUS("Failed to remove track"); } else { if (!track_move(track, trash_tag) && errno != EEXIST) - USER_STATUS("Failed to trash track"); - if (!track_rm(track, true)) + USER_STATUS("Failed to trash track: %s", strerror(errno)); + if (errno == EEXIST && !track_rm(track, true)) USER_STATUS("Failed to remove track"); } |
