repl works again
[scpubgit/Tak.git] / lib / Tak / ModuleSender.pm
index e565a26..9ecbe68 100644 (file)
@@ -3,14 +3,16 @@ package Tak::ModuleSender;
 use IO::All;
 use Moo;
 
+with 'Tak::Role::Service';
+
 sub handle_source_for {
   my ($self, $module) = @_;
   my $io = io->dir("$ENV{HOME}/perl5/lib/perl5")->catfile($module);
   unless ($io->exists) {
-    return FAILURE => undef;
+    die [ 'failure' ];
   }
   my $code = $io->all;
-  return RESULT => $code;
+  return $code;
 }
 
 1;