File: error.cc

package info (click to toggle)
rust-rust-apt 0.8.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 620 kB
  • sloc: cpp: 703; makefile: 8
file content (15 lines) | stat: -rw-r--r-- 287 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "rust-apt/apt-pkg-c/error.h"
#include <apt-pkg/error.h>

#include "types.h"

Vec<AptError> get_all() noexcept {
	Vec<AptError> list;

	while (!_error->empty()) {
		std::string msg;
		bool type = _error->PopMessage(msg);
		list.push_back(AptError{type, msg});
	}
	return list;
}