We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent7c8a285 commita0d1821Copy full SHA for a0d1821
daisy_sequence/js/index.js
@@ -149,6 +149,8 @@ window.onload = function(e){
149
daisy.add_event_listener_current_doc_change(callback_current_doc_change);
150
151
if(null!==arg.open_filepath){
152
+console.log("open_filepath:",arg.open_filepath);
153
+
154
leterrs_=[];
155
letdoc_id=daisy.open_doc_from_path(arg.open_filepath,errs_);
156
for(leti=0;i<errs_.length;i++){
@@ -163,6 +165,11 @@ window.onload = function(e){
163
165
}
164
166
167
if(null!==arg.export_filepath){
168
+if(typeofarg.export_filepath!=='string'){
169
+process.stderr.write(sprintf("can not open source file (internal error) `%s`.\n",arg.open_filepath));
170
+app.exit(1);
171
+}
172
173
constdoc=daisy.get_current_doc();
174
if(null===doc){
175
process.stderr.write(sprintf("can not open source file `%s`.\n",arg.open_filepath));