Skip to content

Commit

Permalink
build fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
b4rtaz committed Feb 9, 2025
1 parent 969848a commit 67e48c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 0 additions & 5 deletions src/app.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,4 @@ typedef struct {
void runInferenceApp(AppCliArgs *args, void (*handler)(AppInferenceContext *context));
void runWorkerApp(AppCliArgs *args);

class BadArgumentException : public std::runtime_error {
public:
explicit BadArgumentException(const std::string& message) : std::runtime_error(message) {}
};

#endif
5 changes: 2 additions & 3 deletions src/dllama-api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -564,9 +564,8 @@ int main(int argc, char *argv[]) {
return EXIT_SUCCESS;
}
runInferenceApp(&args, server);
} catch (const BadArgumentException& e) {
fprintf(stderr, "%s\n\n", e.what());
usage();
} catch (std::exception &e) {
printf("🚨 Critical error: %s\n", e.what());
cleanupSockets();
return EXIT_FAILURE;
}
Expand Down

0 comments on commit 67e48c5

Please # to comment.