mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-31 11:35:24 +01:00
Print a warning if symlink() fails
This commit is contained in:
parent
fc0e2c4ea6
commit
97cc6bb1b5
@ -169,8 +169,12 @@ void SpotifyBlobDownloader::ReplyFinished() {
|
||||
|
||||
while (!version_parts.isEmpty()) {
|
||||
qLog(Debug) << "Linking" << dest_path << "to" << link_path;
|
||||
symlink(dest_path.toLocal8Bit().constData(),
|
||||
link_path.toLocal8Bit().constData());
|
||||
int ret = symlink(dest_path.toLocal8Bit().constData(),
|
||||
link_path.toLocal8Bit().constData());
|
||||
|
||||
if (ret != 0) {
|
||||
qLog(Warning) << "Creating symlink failed with return code" << ret;
|
||||
}
|
||||
|
||||
link_path += "." + version_parts.takeFirst();
|
||||
}
|
||||
|
@ -1609,7 +1609,7 @@ msgstr ""
|
||||
msgid "Error deleting songs"
|
||||
msgstr ""
|
||||
|
||||
#: internet/spotifyblobdownloader.cpp:210
|
||||
#: internet/spotifyblobdownloader.cpp:214
|
||||
msgid "Error downloading Spotify plugin"
|
||||
msgstr ""
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user