File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ impl ChunkGraph {
6868 self
6969 . chunk_graph_module_by_module_identifier
7070 . get_mut ( & module_identifier)
71- . expect ( "Module should be added before" )
71+ . unwrap_or_else ( || panic ! ( "Module({}) should be added before using" , module_identifier ) )
7272 }
7373
7474 pub ( crate ) fn get_chunk_graph_module (
@@ -78,7 +78,7 @@ impl ChunkGraph {
7878 self
7979 . chunk_graph_module_by_module_identifier
8080 . get ( & module_identifier)
81- . expect ( "Module should be added before" )
81+ . unwrap_or_else ( || panic ! ( "Module({}) should be added before using" , module_identifier ) )
8282 }
8383
8484 pub ( crate ) fn get_chunk_graph_chunk_mut (
@@ -155,7 +155,7 @@ impl ChunkGraph {
155155 let chunk_graph_module = self
156156 . chunk_graph_module_by_module_identifier
157157 . get ( & module_identifier)
158- . expect ( "Module should be added before" ) ;
158+ . unwrap_or_else ( || panic ! ( "Module({}) should be added before using" , module_identifier ) ) ;
159159 & chunk_graph_module. chunks
160160 }
161161
You can’t perform that action at this time.
0 commit comments