Show detailed error message if writing tags fails

This commit is contained in:
Andrzej Rybczak
2016-11-20 19:38:11 +01:00
parent a2ffa72a34
commit 3868e32b92
4 changed files with 6 additions and 5 deletions

View File

@@ -1392,8 +1392,8 @@ void EditLibraryTag::run()
if (!Tags::write(ms))
{
success = false;
const char msg[] = "Error while updating tags in \"%1%\"";
Statusbar::printf(msg, wideShorten(ms.getURI(), COLS-const_strlen(msg)));
Statusbar::printf("Error while writing tags to \"%1%\": %2%",
ms.getName(), strerror(errno));
s.finish();
break;
}