File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ class TServer {
135
135
136
136
if ( error instanceof TypeError && error . message === 'Found non-callable @@iterator' ) {
137
137
138
- console . error ( `The configuration middleware "${ name } " seems to encounter internal error !` )
138
+ console . error ( `The middleware "${ name } " seems to encounter internal error !` )
139
139
console . error ( error )
140
140
141
141
} else {
@@ -151,10 +151,6 @@ class TServer {
151
151
152
152
_initRouters ( routers ) {
153
153
154
- if ( isNotArray ( routers ) ) {
155
- throw new TypeError ( `Invalid routers, expect an array of argument to spread to middleware module, got ${ routers . constructor . name } ` )
156
- }
157
-
158
154
for ( let routerName in routers ) {
159
155
160
156
if ( ! Object . prototype . hasOwnProperty . call ( routers , routerName ) ) { continue }
You can’t perform that action at this time.
0 commit comments