Skip to content
This repository was archived by the owner on Oct 22, 2020. It is now read-only.

Commit 685c8fe

Browse files
committed
Replace fail with raise
1 parent 85eaab1 commit 685c8fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cli/context.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def verbose?
1515

1616
def load_module(path)
1717
match = path.match(/(auxiliary|exploit)\/(.+)/i)
18-
fail 'Invalid module path' unless match
18+
raise 'Invalid module path' unless match
1919

2020
type = match.captures[0]
2121
name = class_name(match.captures[1])

0 commit comments

Comments
 (0)