Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
3b6790c7
Commit
3b6790c7
authored
Feb 13, 2012
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
command: never print "bad name" in response to "load"
Work around a confusing error message.
parent
5ee3a9a9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
command.c
src/command.c
+13
-4
No files found.
src/command.c
View file @
3b6790c7
...
...
@@ -817,11 +817,20 @@ handle_load(struct client *client, int argc, char *argv[])
return
print_playlist_result
(
client
,
result
);
GError
*
error
=
NULL
;
return
playlist_load_spl
(
&
g_playlist
,
client
->
player_control
,
if
(
playlist_load_spl
(
&
g_playlist
,
client
->
player_control
,
argv
[
1
],
start_index
,
end_index
,
&
error
)
?
COMMAND_RETURN_OK
:
print_error
(
client
,
error
);
&
error
))
return
COMMAND_RETURN_OK
;
if
(
error
->
domain
==
playlist_quark
()
&&
error
->
code
==
PLAYLIST_RESULT_BAD_NAME
)
/* the message for BAD_NAME is confusing when the
client wants to load a playlist file from the music
directory; patch the GError object to show "no such
playlist" instead */
error
->
code
=
PLAYLIST_RESULT_NO_SUCH_LIST
;
return
print_error
(
client
,
error
);
}
static
enum
command_return
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment