Created
May 6, 2013 16:19
-
-
Save VRMink/5526169 to your computer and use it in GitHub Desktop.
Idea for a fallback library
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fallback.json | |
------- | |
{ | |
email: '[email protected]', | |
disk: '/var/log/failure/marshalled' | |
} | |
Node code | |
------- | |
var fallback = require('fallback'); | |
var mongoose = require('mongoose'); | |
var fluffy = new Kitten({ name: 'fluffy' }); | |
fallback.fluffy.save(function (err, fluffy) { | |
if (err) // DevOps will know about this | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment