Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

error.js 266B

12345678910
  1. var common = require('./common');
  2. //@
  3. //@ ### error()
  4. //@ Tests if error occurred in the last command. Returns `null` if no error occurred,
  5. //@ otherwise returns string explaining the error
  6. function error() {
  7. return common.state.error;
  8. };
  9. module.exports = error;