Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Inaccessible devices should not return an error

get_progname/2 should only return a string.
  • Loading branch information...
commit 390405913add3dde775301f6c8a9571a677bf3ce 1 parent e082441
@msantos authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/procket.erl
View
6 src/procket.erl
@@ -1,4 +1,4 @@
-%% Copyright (c) 2010-2011, Michael Santos <michael.santos@gmail.com>
+%% Copyright (c) 2010-2012, Michael Santos <michael.santos@gmail.com>
%% All rights reserved.
%%
%% Redistribution and use in source and binary forms, with or without
@@ -233,8 +233,8 @@ get_progname(dev, Progname, Options) ->
Progname;
{ok, _} ->
get_progname(sudo, Progname, Options);
- Error ->
- Error
+ _Error ->
+ get_progname(sudo, Progname, Options)
end
end;
Please sign in to comment.
Something went wrong with that request. Please try again.