File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -143,19 +143,27 @@ function do_get($text_file, $conf) {
143
143
global $ tts_debug ;
144
144
145
145
if (!isset ($ conf ['url ' ]) || empty ($ conf ['url ' ])) {
146
+ $ tts_debug ->error ("Failed to get text from URL: No URL configured " );
146
147
return false ;
147
148
}
148
149
149
150
if (($ pos = strpos ($ conf ['url ' ], ': ' )) === false ) {
151
+ $ tts_debug ->error ("Failed to get text from URL: Bad URL configured " );
152
+ $ tts_debug ->error_dump ("url " , $ conf ['url ' ]);
150
153
return false ;
151
154
}
152
155
if (substr ($ conf ['url ' ], $ pos , 3 ) != ':// ' ) {
156
+ $ tts_debug ->error ("Failed to get text from URL: Bad URL configured (no <stream>:// found " );
157
+ $ tts_debug ->error_dump ("url " , $ conf ['url ' ]);
153
158
return false ;
154
159
}
155
160
156
161
$ proto = substr ($ conf ['url ' ], 0 , $ pos );
157
162
$ wrappers = stream_get_wrappers ();
158
163
if (!in_array ($ proto , $ wrappers )) {
164
+ $ tts_debug ->error ("Failed to get text from URL: No stream wrapper for ' " . $ proto . "' was found " );
165
+ $ tts_debug ->error_dump ("url " , $ conf ['url ' ]);
166
+ $ tts_debug ->error_dump ("wrappers " , $ wrappers );
159
167
return false ;
160
168
}
161
169
You can’t perform that action at this time.
0 commit comments