Skip to content

Commit

Permalink
fix: add missing unicorn error descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
3Hren committed Jul 14, 2017
1 parent 88170b3 commit 7c3c7e1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/errors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,16 @@ class unicorn_category_t:
return "invalid path specified";
case version_not_allowed:
return "specified version is not allowed for command";
case no_node:
return "node not exists";
case node_exists:
return "node already exists";
case connection_loss:
return "connection has been lost";
case backend_internal_error:
return "internal backend error";
default:
return std::string("Unknown unicorn error - ") + std::to_string(code);
return format("{} - {}", name(), code);
}
}
};
Expand Down

0 comments on commit 7c3c7e1

Please sign in to comment.