Skip to content

Commit

Permalink
chore: update response message
Browse files Browse the repository at this point in the history
  • Loading branch information
injahow committed Oct 24, 2020
1 parent 81360fa commit 1bed06a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@

$song = $api->song($id);
if ($song == '[]') {
echo '{"error":"unknown id"}';
echo '{"error":"unknown song id"}';
exit;
}

Expand Down
2 changes: 1 addition & 1 deletion index_cn.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

$song = $api->song($id);
if ($song == '[]') {
echo '{"error":"unknown id"}';
echo '{"error":"unknown song id"}';
exit;
}

Expand Down
2 changes: 1 addition & 1 deletion index_id.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
$song = $api->song($id);

if ($song == '[]') {
echo '{"error":"unknown id"}';
echo '{"error":"unknown song id"}';
exit;
}
$song = json_decode($song)[0];
Expand Down

0 comments on commit 1bed06a

Please sign in to comment.