blackberry / webworks-gui

GUI Tool for WebWorks 2.0
https://developer.blackberry.com/html5/
Apache License 2.0
3 stars 5 forks source link

certificate.js odd callback pattern on error #145

Closed jsoref closed 10 years ago

jsoref commented 10 years ago
function addSigningKey(keyPath, callback) {
    // copy to OS location
    try {
        projectUtil.copyFile(path.resolve(keyPath), osPath);
    } catch (e) {
        callback(e, e.message);
    }
    callback();
}

Does it make sense to call callback twice on error?