mirror of
https://github.com/tribufu/node-gamedig
synced 2026-06-01 09:42:41 +00:00
Merge error and fatal
This commit is contained in:
parent
e857eb1b47
commit
9ebb95c69d
7 changed files with 17 additions and 20 deletions
|
|
@ -151,7 +151,7 @@ module.exports = require('./core').extend({
|
|||
var list = [];
|
||||
for(var i = 0; i < numPackets; i++) {
|
||||
if(!(i in packets)) {
|
||||
self.error('Missing packet #'+i);
|
||||
self.fatal('Missing packet #'+i);
|
||||
return true;
|
||||
}
|
||||
list.push(packets[i]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue