Skip to content
This repository was archived by the owner on May 27, 2019. It is now read-only.

Commit a85594d

Browse files
committed
Throw an error when file doesnt exist
1 parent 120aee1 commit a85594d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Graph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ vector<int> Graph::loadRawDataFrom(string path) {
137137
fstream file(path, ios::in);
138138

139139
if (!file.is_open())
140-
return returnIntVector; // should throw an error
140+
throw "Plik nie istnieje, badz zablokowany dostep!";
141141

142142
string temp = "";
143143
while (file >> temp) {

0 commit comments

Comments
 (0)