Skip to content

Errors not getting thrown in Cordova #66

@antonio0

Description

@antonio0

Hi everyone,

I'm using the following structure in order to do something depending on whether a template file is found or not:

require ( [text!filename],
function(file) { console.log('success') },
function(err) { console.log('error') } );

This works fine on chrome but, when on a Cordova/Phonegap app, it always returns 'success', even if the file does not exist.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions