All files / server/src/error errors.js

60% Statements 3/5
100% Branches 0/0
0% Functions 0/2
75% Lines 3/4
1 2 3 4 5 6 7 8 9 10 11 12 13 1412x       12x               12x  
const errors = require('human-error')({
  url: key => `https://serverjs.io/documentation/errors#${key.replace(/\W+/g, '-')}`
});
 
errors['server.native.portused'] = err => `
  The port "${err.port}" is already in use.
  Only a single server can be used per port.
  You have these options:
  - Change the port for the server such as "server({ port: 5000 });"
  - Find out what process is already using the port and stop it.
`;
 
module.exports = errors;