Changeset - 6245840e7c6b
[Not reviewed]
0 1 0
Jan Kaluza - 13 years ago 2012-10-04 10:18:35
hanzz.k@gmail.com
Show more info about boost filesystem error
1 file changed with 5 insertions and 5 deletions:
0 comments (0 inline, 0 general)
spectrum_manager/src/methods.cpp
Show inline comments
 
@@ -192,13 +192,13 @@ int start_instances(ManagerConfig *config, const std::string &_jid) {
 
					}
 
				}
 
			}
 
		}
 
	}
 
	catch (const filesystem_error& ex) {
 
		std::cerr << "boost filesystem error\n";
 
		std::cerr << "Filesystem error: " << ex.what() << "\n";
 
		return 6;
 
	}
 
	return rv;
 
}
 

	
 
void stop_instances(ManagerConfig *config, const std::string &_jid) {
 
@@ -268,13 +268,13 @@ void stop_instances(ManagerConfig *config, const std::string &_jid) {
 
					}
 
				}
 
			}
 
		}
 
	}
 
	catch (const filesystem_error& ex) {
 
		std::cerr << "boost filesystem error\n";
 
		std::cerr << "Filesystem error: " << ex.what() << "\n";
 
		exit(5);
 
	}
 
}
 

	
 
int show_status(ManagerConfig *config) {
 
	int ret = 0;
 
@@ -321,13 +321,13 @@ int show_status(ManagerConfig *config) {
 
					}
 
				}
 
			}
 
		}
 
	}
 
	catch (const filesystem_error& ex) {
 
		std::cerr << "boost filesystem error\n";
 
		std::cerr << "Filesystem error: " << ex.what() << "\n";
 
		exit(5);
 
	}
 
	return ret;
 
}
 

	
 
static void handleDataRead(boost::shared_ptr<Swift::Connection> m_conn, boost::shared_ptr<Swift::SafeByteArray> data) {
 
@@ -457,13 +457,13 @@ void ask_local_server(ManagerConfig *config, Swift::BoostNetworkFactories &netwo
 
			response = "Config file for Spectrum instance with this JID was not found\n";
 
			std::cerr << "Config file for Spectrum instance with this JID was not found\n";
 
// 			exit(20);
 
		}
 
	}
 
	catch (const filesystem_error& ex) {
 
		std::cerr << "boost filesystem error\n";
 
		std::cerr << "Filesystem error: " << ex.what() << "\n";
 
		exit(5);
 
	}
 
}
 

	
 
std::vector<std::string> show_list(ManagerConfig *config, bool show) {
 
	path p(CONFIG_STRING(config, "service.config_directory"));
 
@@ -495,13 +495,13 @@ std::vector<std::string> show_list(ManagerConfig *config, bool show) {
 
				}
 
				list.push_back(CONFIG_STRING(&cfg, "service.jid"));
 
			}
 
		}
 
	}
 
	catch (const filesystem_error& ex) {
 
		std::cerr << "boost filesystem error\n";
 
		std::cerr << "Filesystem error: " << ex.what() << "\n";
 
	}
 
	return list;
 
}
 

	
 

	
 

	
0 comments (0 inline, 0 general)