Преглед изворни кода

refactor: improved some errors messages in EditSong

Kristian Vos пре 2 година
родитељ
комит
ade2ec682f
1 измењених фајлова са 6 додато и 2 уклоњено
  1. 6 2
      frontend/src/components/modals/EditSong/index.vue

+ 6 - 2
frontend/src/components/modals/EditSong/index.vue

@@ -1712,7 +1712,9 @@ export default {
 						});
 					else throw new Error("No title found");
 				} catch (e) {
-					new Toast("Unable to fetch YouTube video title");
+					new Toast(
+						"Unable to fetch YouTube video title. Try starting the video."
+					);
 				}
 			}
 			if (type === "thumbnail")
@@ -1727,7 +1729,9 @@ export default {
 					if (author) this.artistInputValue = author;
 					else throw new Error("No video author found");
 				} catch (e) {
-					new Toast("Unable to fetch YouTube video author");
+					new Toast(
+						"Unable to fetch YouTube video author. Try starting the video."
+					);
 				}
 			}
 		},