File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ private static Songs SharedSongs
6565
6666 public static Song GetById ( string id ) => SharedSongs . _songsById . TryGetValue ( id , out Song ? song )
6767 ? song
68- : throw new InvalidDataException ( ) ;
68+ : throw new InvalidDataException ( $ "Song with ID { id } not found" ) ;
6969
7070 public static explicit operator Songs ( List < Song > songs ) => new ( songs ) ;
7171
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public record Record : SimpleRecord
4545 SongData songData = SongData . Shared ;
4646 if ( ! songData . SongsById . TryGetValue ( Id , out Song ? song ) )
4747 {
48- throw new InvalidDataException ( ) ;
48+ throw new InvalidDataException ( $ "Song with ID { Id } not found" ) ;
4949 }
5050
5151 return ( Type switch
You can’t perform that action at this time.
0 commit comments