Skip to content

Commit fee38b9

Browse files
authored
Fix typo in exception (#11)
1 parent 9778ce3 commit fee38b9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/pidtree.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function list(PID, options, callback) {
5858
}
5959

6060
if (!root) {
61-
callback(new Error('No maching pid found'));
61+
callback(new Error('No matching pid found'));
6262
return;
6363
}
6464

test/integration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ test('should throw an error if an invalid pid is provided', async t => {
121121

122122
test('should throw an error if the pid does not exists', async t => {
123123
const err = await t.throws(pidtree(65535));
124-
t.is(err.message, 'No maching pid found');
124+
t.is(err.message, 'No matching pid found');
125125
});
126126

127127
test.cb("should use the callback if it's provided", t => {

0 commit comments

Comments
 (0)