Changeset ee0ffd


Ignore:
Timestamp:
Aug 3, 2014, 1:59:11 PM (6 years ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
5bc2a4
Parents:
c55313
Message:

catch problems with file-path - still not really fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/vI_rdfDatasource.js

    rc55313 ree0ffd  
    127127        var delimiter = (file.path.match(/\\/))?"\\":"/";
    128128
    129         newFile.initWithPath(file.path + delimiter + this._rdfFileName);
     129        try {
     130            newFile.initWithPath(file.path + delimiter + this._rdfFileName);
     131        } catch (NS_ERROR_FILE_UNRECOGNIZED_PATH) {
     132            var debugMsg = "Filename not valid: '" + file.path + delimiter + this._rdfFileName + "'\n" +
     133                "Virtual Identity Storage won't work.\n\n" +
     134                "Please report this issue with filename on https://www.absorb.it/virtual-id\n\n" +
     135                "You can just copy the lines below in your browser to create a ticket\n\n" +
     136                "https://www.absorb.it/virtual-id/newticket?summary=RDF Filename Error&description=Filename " + file.path + delimiter + this._rdfFileName + " for rdf not valid"
     137            get3PaneWindow().alert(debugMsg);
     138            log.debug("Filename not valid: '" + file.path + delimiter + this._rdfFileName + "'");
     139            log.debug("can't open rdfDatasource - storage won't work");
     140            return;
     141        }
    130142        var fileURI = protoHandler.newFileURI(newFile);
    131143
Note: See TracChangeset for help on using the changeset viewer.